Commit graph

262 commits

Author SHA1 Message Date
echel0n
5bd3a6ac9d Fixed issue with getDirs function 2014-04-25 02:46:04 -07:00
echel0n
e20becd41c Fixed issue with config class code, The new method I implemented to return our data from our config stored in memory was actually removing the items we were getting so I implemented a copy of the data so the original data is no longer touched other then for lookups 2014-04-25 02:24:16 -07:00
echel0n
a9b13881a3 Code cleanup 2014-04-24 23:52:52 -07:00
echel0n
f5f0ff6e10 Fixes issues with extracting and linking of archives.
Fixes other issues from previous update.
2014-04-24 23:41:26 -07:00
echel0n
289d451112 Cleaned up code and fixed a few small bugs. 2014-04-24 21:23:10 -07:00
echel0n
4bd04436bc Fixes extraction issues and occasionally not locating mediafiles 2014-04-23 20:41:55 -07:00
echel0n
f7e56b979b Fixes issues #344, #314
Added in code to place single files or groups of files that are not contained in a folder into there own folder or grouped folder based on parsing of the filenames to extract details required to determin correcting folder naming.
2014-04-23 19:50:51 -07:00
echel0n
c8ddbc4836 Extract issues fixed 2014-04-23 10:35:40 -07:00
echel0n
4d1ec040e9 Fix issue #341 list indices must be intergers not str 2014-04-23 08:13:55 -07:00
echel0n
817f310169 Fixed a bug in the minSize function, was backwards so it never returned results when media files existed. 2014-04-22 21:26:44 -07:00
echel0n
0e7b8eacab Added code in to confirm that the clientAgent returned from the download info in the DB is correct for the script being run so that nzb's don't get processed by torrent scripts and vise-versa. 2014-04-22 19:11:35 -07:00
echel0n
f185e6903b Fixed lib importing for our custom packages 2014-04-22 08:26:08 -07:00
echel0n
dbfae9899b Fix for download info not returning results 2014-04-22 07:34:56 -07:00
echel0n
4332ce5967 Fix for download info 2014-04-22 07:31:57 -07:00
echel0n
3f137ae3b6 Added database support, we now store all variables passed into our scripts so that in the event something fails and you need to perform a manual run it can find those variables by a database lookup and re-use them. 2014-04-22 06:22:37 -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
3a637cc86d Fix for NzbGet exit status 2014-04-20 22:13:58 -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
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
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
echel0n
ef0dee7840 Merge branch 'clinton-hall/dev'
Added version_notify option, allows disabling of new version checks.
2014-04-15 07:53:00 -07:00
clinton-hall
85f79fddf2 fixes for nzbget 2014-04-15 15:51:43 +09:30
clinton-hall
fb915ea963 fixes nzbget config display 2014-04-15 10:09:25 +09:30
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
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
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
eafe549469 nzbToMedia now exits with a return code 2014-04-12 09:32:38 -07:00
echel0n
f6eea0f816 Revert "Cleaned up comments"
This reverts commit 6b29858827.
2014-04-12 09:15:02 -07:00
echel0n
6b29858827 Cleaned up comments 2014-04-12 09:14:28 -07:00
echel0n
f3e5a485e7 fixed bug in nzbtomedia 2014-04-12 08:15:06 -07:00
echel0n
ad4c6a0a47 Debugging of sysv-args 2014-04-12 08:10:37 -07:00
echel0n
acc56943f5 nzbTo* files are skeleton files that call our main nzbToMedia auto-procesor and pass in all variables from sys. 2014-04-12 07:38:23 -07:00
echel0n
f9fd1646d6 Fixed bug in nzbToMedia for logging the calls 2014-04-12 03:36:43 -07:00
echel0n
f778741083 Forgot to add initalizer to nzbToMedia.py
Removed the leftover logger settings from our config spec file
2014-04-12 03:09:47 -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
echel0n
279ce5e4d0 Merge branch 'clinton-hall/dev-CH'
Conflicts:
	TorrentToMedia.py
2014-04-11 00:25:13 -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