Commit graph

79 commits

Author SHA1 Message Date
clinton-hall
0d3060ddf2 fix for media get when no error and no media returend. fixes #345
if movie not in CPS, result = {"media": null, "success": false}.
2014-04-29 11:33:59 +09:30
echel0n
289d451112 Cleaned up code and fixed a few small bugs. 2014-04-24 21:23:10 -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
41e0d10e25 Fixes all SSL issues 2014-04-23 10:27:14 -07:00
echel0n
232f64c697 Fixes issue #344 2014-04-22 08:34:22 -07:00
echel0n
f185e6903b Fixed lib importing for our custom packages 2014-04-22 08:26:08 -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
52b41aa5de Fixes typo for delete_failed option 2014-04-22 02:18:01 -07:00
echel0n
3d50c82281 Fixes issue #341 and #340 2014-04-22 01:49:43 -07:00
echel0n
69f4e531e1 Bypass status check for movies added not in wanted list. 2014-04-21 12:00:19 -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
65b4562d11 Gracefully exits if unable to locate movie in wanted list 2014-04-21 11:17:46 -07:00
echel0n
0f08619ac5 Added in a ffmpeg auto-installer function to our Transcoder class 2014-04-20 22:55:06 -07:00
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
6a0158d801 Complete re-code of linking in TorrentToMedia 2014-04-19 22:47:10 -07:00
echel0n
d26cc388d1 Updated allowed status for search results 2014-04-19 11:14:42 -07:00
echel0n
e1a5e0b11b Fixed status check for movies 2014-04-19 10:12:20 -07:00
echel0n
66b8549914 Added in a comparison check for last edited release incase we don't have enough information gathered to perform a proper status check. 2014-04-18 21:15:13 -07:00
echel0n
88fd7f64ed More fixes 2014-04-18 19:50:32 -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
3db20ab072 Added a check for length of results before we decide if we need to narrow them down further by checking the download clients 2014-04-18 14:37:53 -07:00
echel0n
de20ddd9b2 Added in allowed release status 'done' 2014-04-18 14:16:02 -07:00
echel0n
c2855973ce Removed check for WANTED status as this interfears with being able to post-process movies that were not snatched from CP but obtained via other means. 2014-04-18 14:00:10 -07:00
echel0n
2fa178ee7c Reverted previous changes in regards to checking for download status as now we just filter it out from the search all together 2014-04-18 13:56:21 -07:00
echel0n
59a8629715 Fixed another typo 2014-04-18 13:48:52 -07:00
echel0n
44c28238be We now check for status downloaded and skip post-processing if found. 2014-04-18 13:47:57 -07:00
echel0n
714c2577c4 Fixed a typo 2014-04-18 13:41:12 -07:00
echel0n
ab1c886e38 We now get the clientAgent from the release info and send that with the download_id to insure CouchPotato is happy. 2014-04-18 13:39:19 -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
dd41ff3b2f Fixed 2 bugs in autoProcessMovie, one that was giving a keyError on '_id' and another that was preventing imdbID from being returned correctly. 2014-04-18 07:13:12 -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
8d2049cb14 Fixed issue with key_error in autoProcessMovie 2014-04-17 09:21:14 -07:00
echel0n
053959811a Fixed a bug that was preventing releases from being populated properly. 2014-04-17 08:20:59 -07:00
echel0n
42b14fd079 Fix for download_id 2014-04-17 07:29:29 -07:00
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