Commit graph

267 commits

Author SHA1 Message Date
echel0n
d511b54e66 Fixed issues with checking for video corruption 2014-04-20 13:28:48 -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
8434a58df0 Detects ffmpeg and ffprobe at startup but will alert you to if there missing only when needed to be used so that we don't get a stupid error message at startup for no reason. 2014-04-19 17:55:44 -07:00
echel0n
0df6c1c4fe Corrected a conditional check mistake for testing corrupt videos 2014-04-19 17:17:08 -07:00
echel0n
00a5dae4e3 Added in some missing code 2014-04-19 16:54: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
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
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
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
cdadf045a8 Code cleanup 2014-04-17 07:25:08 -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
Clinton Hall
10857bef99 Process correct directory. Fixes #321 2014-04-15 22:45:15 +09:30
echel0n
880d70f25b Added proper support for manual runs to return clientAgent = manual and set conditionals around that premise 2014-04-13 18:12:10 -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
4cbd1b36fb Changed how it detects windows for removing read-only flags 2014-04-13 13:05:18 -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
ffe5c6dba1 Added console headers. 2014-04-12 10:26:37 -07:00
echel0n
e7cc4b3758 Cleaned up TorrentToMeda, moved CFG variables into our initalizer and made it so it exits with a return code.
Fixed the remaining nzbTo* scripts to exit with return codes.
2014-04-12 10:14:24 -07:00
clinton-hall
874805193f fix extraction tests. 2014-04-12 23:11:14 +09:30
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
echel0n
d8a3bdb7dc Added new helper functionc to config class.
Fixed code to reflect the changes made to config class.
Merged in changes from dev-ch
2014-04-11 00:31:51 -07:00
echel0n
279ce5e4d0 Merge branch 'clinton-hall/dev-CH'
Conflicts:
	TorrentToMedia.py
2014-04-11 00:25:13 -07:00
clinton-hall
c431e0e3da count archive files for failed-torrent branch. fixes #314 2014-04-11 15:14:48 +09:30
clinton-hall
8e754aa334 logging error. fixes #314 2014-04-11 12:09:58 +09:30
echel0n
a0048ac47c Updated config class 2014-04-10 19:09:50 -07:00
clinton-hall
a273f9687f that was a stupid place to an if. 2014-04-10 14:50:43 +09:30
clinton-hall
41ac893c81 no need to preserve folder structure when single file. 2014-04-10 11:27:33 +09:30
clinton-hall
810f37edbf added single folder handling and improved category search 2014-04-10 11:24:26 +09:30
clinton-hall
d4cc70eace fixed config call. fixes 314 2014-04-09 19:26:41 +09:30
clinton-hall
432bc87d10 change check for Torren_NoLink. fixes #314 2014-04-09 16:13:13 +09:30
clinton-hall
3457fbf100 link all files unless archive. Cleanup flow. 2014-04-09 15:12:41 +09:30
clinton-hall
4104aa91cd format and context fixes 2014-04-09 12:38:56 +09:30
clinton-hall
8132ab5769 cleanup the way we handle torrents 2014-04-09 12:30:26 +09:30
clinton-hall
e23d39d458 fixed TorrentToMedia flow. All NZBGet categories are enabled. fixes #309 #314 #315 #316 2014-04-09 10:08:00 +09:30
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
c9898e0e87 Fixed enable/disable check.
Added few more helper functions to our config class.
2014-04-07 06:47:36 -07:00
echel0n
84e770aa82 Fixes issue #310 bug in TorrentToMedia causing issues for HeadPhones 2014-04-07 03:56:53 -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
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
e6f0d7e2dc Fix in torrentToMedia 2014-04-05 17:09:00 -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
8c430908b4 Fixed missing imports 2014-04-03 23:14:35 -07:00
echel0n
2c4b260440 Added lib.requests and code to import our custom lib folder 2014-04-03 23:05:47 -07:00
echel0n
5105e03de6 Merge branch 'clinton-hall/dev'
Conflicts:
	TorrentToMedia.py
2014-04-03 22:54:57 -07:00