Commit graph

37 commits

Author SHA1 Message Date
echel0n
d511b54e66 Fixed issues with checking for video corruption 2014-04-20 13:28:48 -07:00
echel0n
2391f4a5de Fixes issue #332 with is_sample problem. 2014-04-20 08:19:26 -07:00
echel0n
0fac36b4fc Added in untracked files for guessit.
Fixed issue #332, we confirm if str or list and take action depending on result.
2014-04-20 07:49:46 -07:00
echel0n
6a0158d801 Complete re-code of linking in TorrentToMedia 2014-04-19 22:47:10 -07:00
echel0n
06c2dae5ce Added function to return a list of archive files.
Cleaned and fixed code in TorrentToMedia, should resolve issue #314
2014-04-19 18:52:43 -07:00
echel0n
b8ebf0cb64 Improved code in Transcoder class.
Video files are now checked for corruption befoer being sent for post-processing by either SickBeard, NzbDrone, or CouchPotato.

Added ffmpeg_path option to Transcoder section allowing end-user to set where there ffmpeg is located.
2014-04-19 16:50:29 -07:00
echel0n
92d1ca2fe0 Improved imdbID search code 2014-04-19 12:43:23 -07:00
echel0n
c1a1354636 Added GuessIt library and required libs for it.
We now perform a guessit on the nzbName to extract movie title and year instead of a regex, this is more accurate.
2014-04-19 12:28:55 -07:00
echel0n
e1a5e0b11b Fixed status check for movies 2014-04-19 10:12:20 -07:00
echel0n
d5fe1c871e Re-coded our safeName function used for sanitizing filenames.
Changed code for checking final status of processed movies.
2014-04-18 19:31:00 -07:00
echel0n
2be1873cad Fixed a few bugs and made a few more improvements 2014-04-18 16:15:35 -07:00
echel0n
eb7822b60b Updated logger code to now include the section, formatting has been modified as well.
Logging of debug messages is now optional via log_debug option location in autoProcessMedia.cfg

Lots of code cleanup has been performed including cleanup log messages and corrections of spelling errors.

Improved release lookup code for autoProcessMovie, narrows search results down by making API calls to the download clients to compare results in CouchPotato's database.
2014-04-18 13:23:39 -07:00
echel0n
fd4d14be64 We now can post-process files not inside of there own folder, we simply confirm there at the root of our category or watch folder then move them into there own seperate foldersand go from there.
nzbName's are now cleaned up.
2014-04-18 03:10:24 -07:00
echel0n
086eaaa516 Updated requests lib.
More code cleanup done.
2014-04-17 20:44:41 -07:00
echel0n
504ea8ac45 Added NZB_CLIENTAGENT and TORRENT_CLIENTAGENT variables to compliment adding in Nzb client API support for SabNZBD and NzbGet.
Partially added in searching for downloads via download client API calls, more work to be done on this.

NZB Client users but set there client in the cfg, either sabnzbd or nzbget.

Cleaned up some more of the code in TorrentToMedia and nzbToMedia.
2014-04-17 19:04:47 -07:00
echel0n
8d2049cb14 Fixed issue with key_error in autoProcessMovie 2014-04-17 09:21:14 -07:00
echel0n
a9d3ee2a60 Cleaned out left behind code mistake.
Fixed parse_args to pass sys.argv as args array.
2014-04-17 05:44:03 -07:00
echel0n
eac9619dcb nzbTo* files will now send section variable to nzbToMedia script so that manually processing doesn't bother with trying to post-process unrequired folders, also I've changed the way we call nzbToMedia so this should resolve issue #328 encoding issues.
Custom userscripts folder added to avoid auto-update conflicts so long as the custom scripts are stored in said folder, this folder is added to .gitignore
2014-04-17 05:16:29 -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
d65448db87 Typo's causing pre-logging issues fixed 2014-04-14 10:43:19 -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
9bd7eb4ec7 Added urllib.quote to HeadPhones dirName passing 2014-04-13 12:33:27 -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
2fbc987e6f Moved option force_clean from Torrent section into General section.
Moved cleanup function from TorrentToMedia into nzbToMediaUtils.

Folder cleanup is performed automatically after a successful postprocess for both nzb and torrent processing scripts.
2014-04-12 11:16:32 -07:00
echel0n
57019ec21b Re-coded config class to better handle multiple subsection conditionals. 2014-04-12 02:55:57 -07:00
echel0n
e82abc3b01 Merge branch 'clinton-hall/dev-CH'
Made some minor code corrections.
2014-04-11 23:04:58 -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
clinton-hall
b63ff3c962 added option to remove read only flags in windows. fixes #317 2014-04-11 17:05:07 +09:30
clinton-hall
810f37edbf added single folder handling and improved category search 2014-04-10 11:24:26 +09:30
clinton-hall
1829fe0548 clean category_search 2014-04-09 22:31:15 +09:30
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
0ce4bb601d Moved config migration code into our config class, makes more sense.
Added more detailed log messages for get_dirnames function.
2014-04-05 21:28:12 -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
clinton-hall
da09af8de7 Merge branch 'dev' of http://github.com/clinton-hall/nzbToMedia into dev
Conflicts:
	TorrentToMedia.py
	autoProcess/autoProcessTV.py
	autoProcess/migratecfg.py
	nzbToMedia.py
	nzbToSickBeard.py
	nzbtomedia/nzbToMediaAutoFork.py
2014-04-04 15:43:00 +10:30
echel0n
85d8739512 Major overhaul of nzbToMedia code base plus a whole restrucure 2014-04-03 19:58:01 -07:00
Renamed from autoProcess/nzbToMediaUtil.py (Browse further)