Commit graph

43 commits

Author SHA1 Message Date
echel0n
cdadf045a8 Code cleanup 2014-04-17 07:25:08 -07:00
echel0n
92d00ed62a Removed duplicate code from initalizer.
Fixed up code for delete_failed in both TV and Movie autoPP scripts.
2014-04-17 06:06:36 -07:00
echel0n
94354bb7d9 Re-coded autoProcessMovie to now retrieve the imdbID via a API call to IMDB if we can't find one to be used in narrowing our release search results down plus we use the download_id if present to help narrow the results even more.
The results returned are a dictionary of releases instead of just variables so that after a call to CP renamer we can call our function to get the new release results and run a comnparison and get the changed key/val and check status along with other variables that may have changed.

This new code will allow for manually downloading movies that normally could not be snatched from CP it self due to provider results not containing them, simply placing the newly downloaded files into the post-process folder and running our scripts manually will allow CP to manually post-process and add the movie to its database properly now.
2014-04-17 03:53:15 -07:00
echel0n
b2eb32d197 Fixed autoProcessMovie to check for movie status = ignored for imdbID only movies. 2014-04-16 09:43:50 -07:00
echel0n
dc536448b1 autoProcessMovie will now confirm if imdbid only releases are added into database 2014-04-16 09:16:27 -07:00
echel0n
7ba71fcd3a Merge branch 'clinton-hall/dev'
autoProcessMovie now processes dirName/nzbName's with IMDBID that do not exist as snatched releases in CP manually via renamer by sending just the folder to be post-processed without ability to confirm a status change.
2014-04-16 07:51:58 -07:00
echel0n
0589a7e3ee Added better logging for failed downloads when processing failed movies 2014-04-14 14:53:02 -07:00
echel0n
a96bbeea5e autoProcessMovie will not automatically ignore failed releases and try next release in CouchPotato's list. 2014-04-14 14:34:40 -07:00
echel0n
7904330613 Fixed bug in autoProcessMovie that was causing failed downloads not to choose next release for snatch. 2014-04-14 13:45:59 -07:00
echel0n
47ced8a8a2 Fixed a bug in autoProcessMovie, small typo 2014-04-14 13:38:08 -07:00
echel0n
1f48c59960 autoProcessMovie now gets downloader info from matched release and uses that to send to CouchPotato along with download_id instead of using clientAgent, this fixes an issue with incorrect downloader being sent during manual runs. 2014-04-14 13:27:34 -07:00
echel0n
29c03bb871 Manual runs should now always get a release so we removed conditionals that would allow manual runs to bypass checks for release status and download_id and fail them now if those variables are not present. 2014-04-14 13:12:52 -07:00
echel0n
a24c37ce6b autoProcessMovie now returns newest snatched download if it fails to have a download_id to use or a imdbid, this ensures a release is always returned now even for manual runs. 2014-04-14 13:10:11 -07:00
echel0n
df6e85467a More code tweaks for autoProcessMusic and autoProcessMovie relating to checking of release statuses 2014-04-14 10:15:03 -07:00
echel0n
ded68cd21b Fixed a issue in autoProcessMovie for manual runs 2014-04-14 09:42:10 -07:00
echel0n
012e4913a8 More code changes 2014-04-13 17:55:20 -07:00
echel0n
6a74a4443e Fixed another bug in autoProcessMovie for clientAgent and manual runs 2014-04-13 16:43:42 -07:00
echel0n
e206829834 Fixed bug that was caused by manual run of torrentToMedia 2014-04-13 16:27:12 -07:00
echel0n
6c3096851b autoProcessMovie now searches for snatched download via imdbid, download_id and torrent hash using torrent api calls. 2014-04-13 16:19:30 -07:00
echel0n
1e90193f47 Fixed another bug in autoProcessMovie 2014-04-13 13:24:07 -07:00
echel0n
eeee92c830 Fixed bugs in autoProcessMusic and autoProcessMovie 2014-04-13 13:20:39 -07:00
echel0n
a2eb80f619 Re-added back NZBGet options to our stub files.
Added a status check for processed files in HeadPhones.
Fixed a bug in HeadPhones with passing params via requests.
Fixed SickBeard and CouchPotato conditionals for deleting failed files.
2014-04-13 12:27:29 -07:00
echel0n
77e07be6c8 Added remote_path option to CouchPotato section, allows setting the basepath for where CouchPotato looks for its video files on the server its installed on.
Re-coded autoProcessMovies, it now will attempt to get imdbID from dirName, nzbName and if both fail it then uses a regex to get the movie title and uses that to perform a search on CouchPotato.

We also now get the release_id and use that instead of movie id.

Fixed a bug that was preventing failed downloads from working properly for CouchPotato.
2014-04-13 10:32:10 -07:00
echel0n
36df37d45e Added headers to autoProcess* scripts to make logging nicer 2014-04-12 06:04:33 -07:00
echel0n
d2e3275562 Fixed bugs in nzbTo* scripts.
autoProcessTV now gets movie_id even for previously post-processed movies so that we can skip further post-processing gracefully.

Code cleanup misc ...
2014-04-12 05:51:37 -07:00
echel0n
18926d1db8 Massive changes to the way we handle our config, its now loaded and stored in memory so that we don't keep loading it and possibly get corrupt values.
New logger class added,logger options removed from settings.
2014-04-11 20:09:00 -07:00
echel0n
279ce5e4d0 Merge branch 'clinton-hall/dev-CH'
Conflicts:
	TorrentToMedia.py
2014-04-11 00:25:13 -07:00
echel0n
5af112ecf0 Added NzbDrone support to NzbGet migration code 2014-04-07 18:20:26 -07:00
echel0n
939cc3235b Fixed it so autoProcessMovie returns success if clientAgent is not a torrent client when download_id is empty 2014-04-07 11:09:42 -07:00
echel0n
0ca0e43752 Monkey Patched our config class.
Fixed code for enabled check.
Tweaked a few things here and there.
2014-04-07 09:11:14 -07:00
echel0n
6820188605 Fix bug in enabled check, changed code to return list and proper turn to string 2014-04-07 08:20:35 -07:00
echel0n
c9898e0e87 Fixed enable/disable check.
Added few more helper functions to our config class.
2014-04-07 06:47:36 -07:00
echel0n
78b5c1d76f More fixes 2014-04-07 02:56:50 -07:00
echel0n
640f25895b Made some changes to how sections are returned, now with a section counter 2014-04-07 02:54:44 -07:00
echel0n
45ab861017 Fixed issue with autoProcessing scripts not properly returning the correct section as it was getting a list 2014-04-07 02:33:16 -07:00
echel0n
761fc7cc04 Fixed issue with enabled stataus for sub-sections not being converted to a integer.
Please note default setting is enabled = 0 so if you want to use a sub-section you need to set it to enabled = 1
2014-04-07 01:54:39 -07:00
echel0n
7d4ccf53cc Fixed a bunch of issues that where present in TorrentToMedia and our config class including the migration code.
Added in manual run for TorrentToMedia.

All autoProcessing scripts now auto-detect the correct section based on sub-section.

NzbDrone support is 90% done but is not functional ... YET!

Lots more I'm sure but I wanted this released for those that where having issues.
2014-04-07 01:43:14 -07:00
echel0n
c3410fba8f Fixed issues in the nzbTo* scripts with manual runs not properly sending the categories to be processed.
Fixed issue in TorrentToMedia with noFlatten variable for HeadPhones.

Changed name of function get_categories to get_sections in nzbToMediaUtil.

Added code in get_dirnames to properly return back the directory could not find anything to process in.
2014-04-05 21:04:56 -07:00
echel0n
b7fc74b3fd Switched our config class to configObj.
nzbToMedia now fully performs manual runs for all autoProcessing scripts.

autoProcessing categories are now sub-sections in the autoProcessingMedia.cfg file which allows you to have a unlimited amount of categories for your liking.

nzbToMedia supports categories for all autoProcessing scripts now.

Minor bug fixes and code cleanup performed during the re-code.

Auto-migration code will convert old-style cfg files to new-style cfg format.
2014-04-04 15:18:40 -07:00
echel0n
2c4b260440 Added lib.requests and code to import our custom lib folder 2014-04-03 23:05:47 -07:00
echel0n
d93eb866d7 Changed the way requests processes the response back from the autoProcessor 2014-04-03 21:51:09 -07:00
echel0n
8e7490ff80 Changed r.content to r.text 2014-04-03 21:08:51 -07:00
echel0n
85d8739512 Major overhaul of nzbToMedia code base plus a whole restrucure 2014-04-03 19:58:01 -07:00