Commit graph

326 commits

Author SHA1 Message Date
echel0n
eeca672e00 We now append the torrent info hash to the output destination folder name, this allows us to re-use it for manual runs if something failed during the post-processing or other future uses. 2014-04-22 02:53:39 -07:00
echel0n
3d50c82281 Fixes issue #341 and #340 2014-04-22 01:49:43 -07:00
echel0n
bd6881b33e Testing new idea for CP adding of movies not in wanted list. 2014-04-21 11:39:20 -07:00
echel0n
dea4c5d32a Fixes issue with TorrentNoLink returning incorrect value. 2014-04-21 11:25:24 -07:00
echel0n
ab00c8a858 Fixes issues with NzbGet exit codes 2014-04-20 22:16:28 -07:00
echel0n
a7d367c93b Extraction now takes place after linking is done in destination folder. 2014-04-20 21:13:36 -07:00
echel0n
27d722e8b1 All processing sections now can enable/disable linking for torrents via TorrentNoLink option in autoProcessMedia.cfg
Cleanup/removal of processed files on start and finish of our nzbToMedia and TorrentToMedia scripts to insure things stay nice and polished :)

Code tweaked and cleaned and fed a energy drink so stay on the look out this things alive ! lol
2014-04-20 18:04:50 -07:00
echel0n
0053fdcf3e Added cleanup of processing folders to start and end of scripts, helps resolve issues where empty folders or misc files left behind cause processing scripts to execute without need.
Modified our listMediaFiles function to allow include/exclude of extension containers so that we can chose what extensions are used to create the results list that gets returned back to us.
2014-04-20 16:28:27 -07:00
echel0n
9c817af60e Code corrected our conditional check for extraction. 2014-04-20 14:29:17 -07:00
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