Closed marky183 closed 10 years ago
The issue here is that CouchPotato is not returning the expected data. It appears to be giving a login request (which shouldn't be required for the api call).
Can you please check your host, port, and api key for Couchpotato in autoProcessMedia.cfg?
Are you using CouchPotat behind a reverse proxy?
Can you set
autoProcessMedia.cfg
[General]
log_debug = 1
and then post the logs after the next movie is postprocessed?
The debug logs should show the exact url that is being called.
This can be closed. Thanks for the reply and the help! I just started over.
Thanks
After re installing everything - i still have the same issue. Per your instructions above below are the logs for with debug set to on.
I rechecked the API, host and port and it all is correct.
2014-10-03 14:29:35 INFO ::MAIN: Checking database structure...
2014-10-03 14:29:35 DEBUG ::MAIN: Checking Initial Schema database upgrade
2014-10-03 14:29:35 DEBUG ::MAIN: InitialSchema upgrade not required
2014-10-03 14:29:35 DEBUG ::MAIN: Checking if we can use git commands: git version
2014-10-03 14:29:35 DEBUG ::MAIN: Executing git version with your shell in /usr/local/share/nzbToMedia
2014-10-03 14:29:35 DEBUG ::MAIN: git output: git version 2.1.0
2014-10-03 14:29:35 DEBUG ::MAIN: git version : returned successful
2014-10-03 14:29:35 DEBUG ::MAIN: Using: git
2014-10-03 14:29:35 DEBUG ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /usr/local/share/nzbToMedia
2014-10-03 14:29:35 DEBUG ::MAIN: git output: refs/heads/master
2014-10-03 14:29:35 DEBUG ::MAIN: git symbolic-ref -q HEAD : returned successful
2014-10-03 14:29:35 INFO ::MAIN: Checking if git needs an update
2014-10-03 14:29:35 DEBUG ::MAIN: Executing git rev-parse HEAD with your shell in /usr/local/share/nzbToMedia
2014-10-03 14:29:35 DEBUG ::MAIN: git output: d904aafb99938455e3fed45d70d392eb021f1da8
2014-10-03 14:29:35 DEBUG ::MAIN: git rev-parse HEAD : returned successful
2014-10-03 14:29:35 DEBUG ::MAIN: Executing git fetch origin with your shell in /usr/local/share/nzbToMedia
2014-10-03 14:29:35 DEBUG ::MAIN: git output:
2014-10-03 14:29:35 DEBUG ::MAIN: git fetch origin : returned successful
2014-10-03 14:29:35 DEBUG ::MAIN: Executing git rev-parse --verify --quiet "@{upstream}" with your shell in /usr/local/share/nzbToMedia
2014-10-03 14:29:35 DEBUG ::MAIN: git output: d904aafb99938455e3fed45d70d392eb021f1da8
2014-10-03 14:29:35 DEBUG ::MAIN: git rev-parse --verify --quiet "@{upstream}" : returned successful
2014-10-03 14:29:35 DEBUG ::MAIN: Executing git rev-list --left-right "@{upstream}"...HEAD with your shell in /usr/local/share/nzbToMedia
2014-10-03 14:29:35 DEBUG ::MAIN: git output:
2014-10-03 14:29:35 DEBUG ::MAIN: git rev-list --left-right "@{upstream}"...HEAD : returned successful
2014-10-03 14:29:35 DEBUG ::MAIN: cur_commit = d904aafb99938455e3fed45d70d392eb021f1da8 % (newest_commit)= d904aafb99938455e3fed45d70d392eb021f1da8, num_commits_behind = 0, num_commits_ahead = 0
2014-10-03 14:29:35 INFO ::MAIN: No update needed
2014-10-03 14:29:35 INFO ::MAIN: nzbToMedia Version:d904aafb99938455e3fed45d70d392eb021f1da8 Branch:master (FreeBSD 9.2-RELEASE-p10)
2014-10-03 14:29:35 WARNING ::MAIN: Failed to locate ffmpeg, transcoding disabled!
2014-10-03 14:29:35 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ...
2014-10-03 14:29:35 WARNING ::MAIN: Failed to locate ffprobe, video corruption detection disabled!
2014-10-03 14:29:35 WARNING ::MAIN: Install ffmpeg with x264 support to enable this feature ...
2014-10-03 14:29:35 INFO ::MAIN: #########################################################
2014-10-03 14:29:35 INFO ::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
2014-10-03 14:29:35 INFO ::MAIN: #########################################################
2014-10-03 14:29:35 DEBUG ::MAIN: Options passed into nzbToMedia: ['/usr/local/share/nzbToMedia/nzbToCouchPotato.py', '/media/Complete/Movies/Extract 2009 720p BluRay DTS x264-CtrlHD.cp(tt1225822)', 'Extract 2009 720p BluRay DTS x264-CtrlHD.cp(tt1225822).nzb', 'Extract 2009 720p BluRay DTS x264-CtrlHD.cp(tt1225822)', '', 'movies', 'alt.binaries.squaresoft', '0']
2014-10-03 14:29:35 INFO ::MAIN: Script triggered from SABnzbd
2014-10-03 14:29:35 DEBUG ::MAIN: Adding NZB download info for directory /media/Complete/Movies/Extract 2009 720p BluRay DTS x264-CtrlHD.cp(tt1225822) to database
2014-10-03 14:29:35 INFO ::MAIN: Auto-detected SECTION:CouchPotato
2014-10-03 14:29:35 DEBUG ::MAIN: Checking for archives to extract in directory: /media/Complete/Movies/Extract 2009 720p BluRay DTS x264-CtrlHD.cp(tt1225822)
2014-10-03 14:29:35 INFO ::MAIN: Calling CouchPotato:movies to post-process:Extract 2009 720p BluRay DTS x264-CtrlHD.cp(tt1225822).nzb
2014-10-03 14:29:35 INFO ::MAIN: Attemping imdbID lookup for Extract 2009 720p BluRay DTS x264-CtrlHD.cp(tt1225822).nzb
2014-10-03 14:29:35 INFO ::MAIN: Searching folder and file names for imdbID ...
2014-10-03 14:29:35 INFO ::MAIN: Found imdbID [tt1225822]
2014-10-03 14:29:35 DEBUG ::MAIN: Opening URL: http://192.168.1.4:5050/couchpotato/api/e35c20a3d718458c961a64d8cee4e930/media.get with PARAMS: {'id': 'tt1225822'}
2014-10-03 14:29:35 ERROR ::MAIN: CouchPotato returned the following non-json data
2014-10-03 14:29:35 ERROR ::MAIN:
2014-10-03 14:29:35 ERROR ::MAIN: <!doctype html>
2014-10-03 14:29:35 ERROR ::MAIN: <html>
2014-10-03 14:29:35 ERROR ::MAIN: <head>
2014-10-03 14:29:35 ERROR ::MAIN: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
2014-10-03 14:29:35 ERROR ::MAIN: <meta name="apple-mobile-web-app-capable" content="yes">
2014-10-03 14:29:35 ERROR ::MAIN: <meta name="mobile-web-app-capable" content="yes">
2014-10-03 14:29:35 ERROR ::MAIN: <meta http-equiv="X-UA-Compatible" content="IE=edge" />
2014-10-03 14:29:35 ERROR ::MAIN:
2014-10-03 14:29:35 ERROR ::MAIN: <link rel="stylesheet" href="/minified/front.css?1412366245" type="text/css">
2014-10-03 14:29:35 ERROR ::MAIN:
2014-10-03 14:29:35 ERROR ::MAIN: <script type="text/javascript" src="/minified/front.js?1412366248"></script>
2014-10-03 14:29:35 ERROR ::MAIN:
2014-10-03 14:29:35 ERROR ::MAIN: <script type="text/javascript" src="/minified/head.js?1412366248"></script>
2014-10-03 14:29:35 ERROR ::MAIN:
2014-10-03 14:29:35 ERROR ::MAIN: <link rel="stylesheet" href="/minified/head.css?1412366245" type="text/css">
2014-10-03 14:29:35 ERROR ::MAIN: <link href="/static/images/favicon.ico" rel="icon" type="image/x-icon" />
2014-10-03 14:29:35 ERROR ::MAIN: <link rel="apple-touch-icon" href="/static/images/homescreen.png" />
2014-10-03 14:29:35 ERROR ::MAIN: <script type="text/javascript" src="https://www.youtube.com/player_api" defer="defer"></script>
2014-10-03 14:29:35 ERROR ::MAIN: <script type="text/javascript">
2014-10-03 14:29:35 ERROR ::MAIN: window.addEvent('load', function(){
2014-10-03 14:29:35 ERROR ::MAIN: if(window.getSize().x <= 480)
2014-10-03 14:29:35 ERROR ::MAIN: setTimeout(function(){
2014-10-03 14:29:35 ERROR ::MAIN: window.scrollTo(0, 1);
2014-10-03 14:29:35 ERROR ::MAIN: window.scrollTo(0, 0);
2014-10-03 14:29:35 ERROR ::MAIN: }, 100);
2014-10-03 14:29:35 ERROR ::MAIN: });
2014-10-03 14:29:35 ERROR ::MAIN: window.addEvent('domready', function() {
2014-10-03 14:29:35 ERROR ::MAIN: new Uniform();
2014-10-03 14:29:35 ERROR ::MAIN: Api.setup({
2014-10-03 14:29:35 ERROR ::MAIN: 'url': "/api/e35c20a3d718458c961a64d8cee4e930/",
2014-10-03 14:29:35 ERROR ::MAIN: 'path_sep': "/",
2014-10-03 14:29:35 ERROR ::MAIN: 'is_remote': false
2014-10-03 14:29:35 ERROR ::MAIN: });
2014-10-03 14:29:35 ERROR ::MAIN: $(document.body).set('data-api', window.location.protocol + '//' + window.location.host + Api.createUrl().replace('/default/', '/'));
2014-10-03 14:29:35 ERROR ::MAIN: // Catch errors
2014-10-03 14:29:35 ERROR ::MAIN: window.onerror = function(message, file, line){
2014-10-03 14:29:35 ERROR ::MAIN: p(message, file, line);
2014-10-03 14:29:35 ERROR ::MAIN: Api.request('logging.log', {
2014-10-03 14:29:35 ERROR ::MAIN: 'data': {
2014-10-03 14:29:35 ERROR ::MAIN: 'type': 'error',
2014-10-03 14:29:35 ERROR ::MAIN: 'message': Browser.name + ' ' + Browser.version + ': \n' + message,
2014-10-03 14:29:35 ERROR ::MAIN: 'page': window.location.href.replace(window.location.host, 'HOST'),
2014-10-03 14:29:35 ERROR ::MAIN: 'file': file.replace(window.location.host, 'HOST'),
2014-10-03 14:29:35 ERROR ::MAIN: 'line': line
2014-10-03 14:29:35 ERROR ::MAIN: }
2014-10-03 14:29:35 ERROR ::MAIN: });
2014-10-03 14:29:35 ERROR ::MAIN: return true;
2014-10-03 14:29:35 ERROR ::MAIN: }
2014-10-03 14:29:35 ERROR ::MAIN: Quality.setup({
2014-10-03 14:29:35 ERROR ::MAIN: 'profiles': [{"_rev": "00078752", "finish": [true, true, true, true], "hide": false, "_id": "804b0178f29248ba90b2f3eeedad3a09", "_t": "profile", "label": "Best", "qualities": ["720p", "1080p", "brrip", "dvdrip"], "stop_after": [0, 0, 0, 0], "wait_for": [0, 0, 0, 0], "order": 0, "3d": [false, false, false, false]}, {"_rev": "0007c622", "finish": [true, true], "hide": false, "_id": "1d99a1c393ab422da84e66958ae68330", "_t": "profile", "label": "HD", "qualities": ["720p", "1080p"], "stop_after": [0, 0], "wait_for": [0, 0], "order": 1, "3d": [false, false]}, {"_rev": "000709f0", "finish": [true, true], "hide": false, "_id": "99ab635b8698493e8fb6fde95740ddfe", "_t": "profile", "label": "SD", "qualities": ["dvdrip", "dvdr"], "stop_after": [0, 0], "wait_for": [0, 0], "order": 2, "3d": [false, false]}, {"_rev": "0007cb11", "finish": [true, true, true, true], "hide": true, "_id": "03afbbe8619b4cbf87fd60e4502c822e", "_t": "profile", "label": "Prefer 3D HD", "qualities": ["1080p", "720p", "720p", "1080p"], "stop_after": [0, 0, 0, 0], "wait_for": [0, 0, 0, 0], "order": 3, "3d": [true, true, false, false]}, {"_rev": "000713ac", "finish": [true, true], "hide": true, "_id": "3a486eb0d8984ad18c7ee92761f58d5f", "_t": "profile", "label": "3D HD", "qualities": ["1080p", "720p"], "stop_after": [0, 0], "wait_for": [0, 0], "order": 4, "3d": [true, true]}, {"core": true, "_rev": "000705f8", "finish": [true], "hide": false, "_id": "7552021020bf48e787ca9c1d73555ae6", "_t": "profile", "label": "BR-Disk", "qualities": ["bd50"], "wait_for": [0], "order": 5}, {"core": true, "_rev": "000769ab", "finish": [true], "hide": false, "_id": "e0cabb0d2c3d4cdaacfe170123771161", "_t": "profile", "label": "1080p", "qualities": ["1080p"], "wait_for": [0], "order": 6}, {"core": true, "_rev": "000773d5", "finish": [true], "hide": false, "_id": "6c58b6342af749c9ba9caea987a6f96c", "_t": "profile", "label": "720p", "qualities": ["720p"], "wait_for": [0], "order": 7}, {"core": true, "_rev": "0007552d", "finish": [true], "hide": false, "_id": "7aa11a2cea5d46e1ab82ef830c312c03", "_t": "profile", "label": "BR-Rip", "qualities": ["brrip"], "wait_for": [0], "order": 8}, {"core": true, "_rev": "0007848d", "finish": [true], "hide": false, "_id": "00211acfc93e4ecba5e34c3d9a7285fb", "_t": "profile", "label": "DVD-R", "qualities": ["dvdr"], "wait_for": [0], "order": 9}, {"core": true, "_rev": "0007f594", "finish": [true], "hide": false, "_id": "94028a17bc814fae913221aa637fdc56", "_t": "profile", "label": "DVD-Rip", "qualities": ["dvdrip"], "wait_for": [0], "order": 10}, {"core": true, "_rev": "000718b9", "finish": [true], "hide": false, "_id": "b616c1edc0ad4a45a14073eda0b69384", "_t": "profile", "label": "Screener", "qualities": ["scr"], "wait_for": [0], "order": 11}, {"core": true, "_rev": "00073de0", "finish": [true], "hide": true, "_id": "87e1747570434597b26506c2834e7d35", "_t": "profile", "label": "R5", "qualities": ["r5"], "wait_for": [0], "order": 12}, {"core": true, "_rev": "0007c058", "finish": [true], "hide": true, "_id": "0f027ef2315b47f0bea1162fb09d899c", "_t": "profile", "label": "TeleCine", "qualities": ["tc"], "wait_for": [0], "order": 13}, {"core": true, "_rev": "00072ac0", "finish": [true], "hide": true, "_id": "5f654cbe8e5b48569dba145f3ea41006", "_t": "profile", "label": "TeleSync", "qualities": ["ts"], "wait_for": [0], "order": 14}, {"core": true, "_rev": "00073d1a", "finish": [true], "hide": true, "_id": "4cb45454618f4258b211abbc49c205d2", "_t": "profile", "label": "Cam", "qualities": ["cam"], "wait_for": [0], "order": 15}],
2014-10-03 14:29:35 ERROR ::MAIN: 'qualities': [{"_id": "40e336c86fe949b09c42b429f3287f42", "tags": ["bdmv", "certificate", ["complete", "bluray"], "avc", "mvc"], "_rev": "00010d0e", "_t": "quality", "size_max": 60000, "size_min": 20000, "label": "BR-Disk", "order": 0, "ext": ["iso", "img"], "is_3d": false, "allow_3d": true, "allow": ["1080p"], "alternative": ["bd25", ["br", "disk"]], "identifier": "bd50", "median_size": 40000, "hd": true, "size": [20000, 60000]}, {"_rev": "00012b95", "identifier": "1080p", "size_min": 4000, "tags": ["m2ts", "x264", "h264"], "_id": "113dcf06d16443468f3f7d09152cd2f0", "_t": "quality", "size_max": 20000, "label": "1080p", "height": 1080, "order": 1, "width": 1920, "ext": ["mkv", "m2ts", "ts"], "is_3d": false, "allow": [], "alternative": [], "allow_3d": true, "median_size": 10000, "hd": true, "size": [4000, 20000]}, {"_rev": "0001032b", "identifier": "720p", "size_min": 3000, "tags": ["x264", "h264"], "_id": "5bd19ff95c6d40709e91246a764f07a2", "_t": "quality", "size_max": 10000, "label": "720p", "height": 720, "order": 2, "width": 1280, "ext": ["mkv", "ts"], "is_3d": false, "allow": [], "alternative": [], "allow_3d": true, "median_size": 5500, "hd": true, "size": [3000, 10000]}, {"_id": "0a1e7b10b23849138066b476c6f25871", "tags": ["webdl", ["web", "dl"]], "_rev": "0001b698", "_t": "quality", "size_max": 7000, "size_min": 700, "label": "BR-Rip", "order": 3, "ext": ["mp4", "avi"], "is_3d": false, "allow_3d": true, "allow": ["720p", "1080p"], "alternative": ["bdrip", ["br", "rip"], "hdtv", "hdrip"], "identifier": "brrip", "median_size": 2000, "hd": true, "size": [700, 7000]}, {"_id": "7f29be20489c4bce834a1ea7e6cbf856", "tags": ["pal", "ntsc", "video_ts", "audio_ts", ["dvd", "r"], "dvd9"], "_rev": "0001d4d7", "_t": "quality", "size_max": 10000, "size_min": 3000, "label": "DVD-R", "order": 4, "ext": ["iso", "img", "vob"], "is_3d": false, "allow": [], "alternative": ["br2dvd", ["dvd", "r"]], "identifier": "dvdr", "median_size": 4500, "size": [3000, 10000]}, {"_id": "c1c3313e11e1461caaa106e3fd0c4df2", "tags": [["dvd", "rip"], ["dvd", "xvid"], ["dvd", "divx"]], "_rev": "00016555", "_t": "quality", "size_max": 2400, "size_min": 600, "label": "DVD-Rip", "order": 5, "width": 720, "ext": ["avi"], "is_3d": false, "allow": [], "alternative": [["dvd", "rip"]], "identifier": "dvdrip", "median_size": 1500, "size": [600, 2400]}, {"_id": "6dcf80b8dd0a4aa68d440b57f34eaec5", "tags": [], "_rev": "00010eaf", "_t": "quality", "size_max": 1600, "size_min": 600, "label": "Screener", "order": 6, "ext": [], "is_3d": false, "allow": ["dvdr", "dvdrip", "720p", "1080p"], "alternative": ["screener", "dvdscr", "ppvrip", "dvdscreener", "hdscr", "webrip", ["web", "rip"]], "identifier": "scr", "median_size": 700, "size": [600, 1600]}, {"_rev": "00014448", "order": 7, "size_min": 600, "is_3d": false, "alternative": ["r6"], "size": [600, 1000], "identifier": "r5", "_t": "quality", "size_max": 1000, "label": "R5", "ext": [], "allow": ["dvdr", "720p"], "_id": "966f90fe95f24590879aa631ad798d1b", "median_size": 700}, {"_rev": "0001c38c", "order": 8, "size_min": 600, "alternative": ["telecine"], "size": [600, 1000], "identifier": "tc", "_t": "quality", "size_max": 1000, "label": "TeleCine", "ext": [], "allow": ["720p"], "_id": "46d00723c55e41dd908da7e12a6c6a62", "median_size": 700}, {"_rev": "00011676", "order": 9, "size_min": 600, "alternative": ["telesync", "hdts"], "size": [600, 1000], "identifier": "ts", "_t": "quality", "size_max": 1000, "label": "TeleSync", "ext": [], "allow": ["720p"], "_id": "5b247510ad7940eabcd729e362125618", "median_size": 700}, {"_rev": "00013839", "order": 10, "size_min": 600, "is_3d": false, "alternative": ["camrip", "hdcam"], "size": [600, 1000], "identifier": "cam", "_t": "quality", "size_max": 1000, "label": "Cam", "ext": [], "allow": ["720p"], "_id": "53a87b57051d4c5d9afca70904a61de4", "median_size": 700}]
2014-10-03 14:29:35 ERROR ::MAIN: });
2014-10-03 14:29:35 ERROR ::MAIN: CategoryList.setup([]);
2014-10-03 14:29:35 ERROR ::MAIN: App.setup({
2014-10-03 14:29:35 ERROR ::MAIN: 'base_url': "/",
2014-10-03 14:29:35 ERROR ::MAIN: 'args': "['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/db/couchpotato/couchpotato.pid', '--daemon']",
2014-10-03 14:29:35 ERROR ::MAIN: 'options': "Namespace(config_file='/var/db/couchpotato/settings.conf', console_log=False, daemon=True, data_dir='/var/db/couchpotato', debug=False, pid_file='/var/db/couchpotato/couchpotato.pid', quiet=False)",
2014-10-03 14:29:35 ERROR ::MAIN: 'app_dir': "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer",
2014-10-03 14:29:35 ERROR ::MAIN: 'data_dir': "/var/db/couchpotato",
2014-10-03 14:29:35 ERROR ::MAIN: 'pid': "57594 ",
2014-10-03 14:29:35 ERROR ::MAIN: 'userscript_version': 25
2014-10-03 14:29:35 ERROR ::MAIN: });
2014-10-03 14:29:35 ERROR ::MAIN: })
2014-10-03 14:29:35 ERROR ::MAIN:
2014-10-03 14:29:35 ERROR ::MAIN: </script>
2014-10-03 14:29:35 ERROR ::MAIN: <title>CouchPotato</title>
2014-10-03 14:29:35 ERROR ::MAIN: </head>
2014-10-03 14:29:35 ERROR ::MAIN: <body></body>
2014-10-03 14:29:35 ERROR ::MAIN: </html>
2014-10-03 14:29:35 DEBUG ::COUCHPOTATO: Opening URL: http://192.168.1.4:5050/couchpotato/api/e35c20a3d718458c961a64d8cee4e930/renamer.scan with PARAMS: {'media_folder': '/media/Complete/Movies/Extract 2009 720p BluRay DTS x264-CtrlHD.cp(tt1225822)'}
2014-10-03 14:29:35 POSTPROCESS::COUCHPOTATO: Starting renamer scan for Extract 2009 720p BluRay DTS x264-CtrlHD.cp(tt1225822).nzb
ok. What happens if you post
http://192.168.1.4:5050/couchpotato/api/e35c20a3d718458c961a64d8cee4e930/media.get?id=tt1225822
into your local browser?
What version of CouchPotato are you running?
It brings me to couchpotato, the home screen and it is blank.
i am running 9.2 - Version 2252ed71 (9/29/2014 8:25:19 AM)
so for whatever reason, your CouchPotatoServer is not responding to the api request and instead is going to the homepage.
what happens if you go to http://10.1.1.9:5050/docs/
can you post the first page of the returned info?
i get "this webpage is not available"
I also went to the previous link and it pulls up the following text.
{"media": {"status": "done", "info": {"rating": {"imdb": [6.2, 33069]}, "genres": ["Comedy", "Indie", "Crime", "Romance"], "tmdb_id": 12569, "plot": "Dean (Bateman), the owner of a flower-extract plant, tries to contend with myriad personal and professional problems, such as his potentially unfaithful wife (Wiig) and employees who want to take advantage of him", "tagline": "Sticking it to the man has never looked so good.", "year": 2009, "original_title": "Extract", "actor_roles": {"T. J. Miller": "Rory", "Kristen Wiig": "Suzie", "Javier Guti\u00e9rrez": "Hector", "Ben Affleck": "Dean", "Brent Briscoe": "Phil", "Clifton Collins, Jr.": "Step", "Lidia Porto": "Gabriella", "Beth Grant": "Mary", "J.K. Simmons": "Brian", "Lamberto Gutierrez": "Victor", "Mila Kunis": "Cindy", "Gene Simmons": "Joe Adler", "David Koechner": "Nathan", "Jason Bateman": "Joel", "Matt Schulze": "Willie", "Dustin Milligan": "Brad"}, "via_imdb": true, "images": {"disc_art": [], "poster": ["https://image.tmdb.org/t/p/w154/6IKAmLyf6MadOd9vmSfK7MVpLJg.jpg", "http://ia.media-imdb.com/images/M/MV5BMTgzNzU3OTQ4NV5BMl5BanBnXkFtZTcwOTY3MzA4Mg@@._V1_.jpg", "http://ia.media-imdb.com/images/M/MV5BMTgzNzU3OTQ4NV5BMl5BanBnXkFtZTcwOTY3MzA4Mg@@._V1_SX300.jpg"], "backdrop": ["https://image.tmdb.org/t/p/w1280/conED5se4VuFfzTqofAnh8uWP2S.jpg"], "extra_thumbs": ["https://image.tmdb.org/t/p/original/rnsY79QF9M2sYQvnYYyWCg23Ekc.jpg", "https://image.tmdb.org/t/p/original/upjec3jgz4FBddrBMsLgQjGTE7C.jpg", "https://image.tmdb.org/t/p/original/oAsZjqbrsgcswT3HdqgtNSOu3rX.jpg", "https://image.tmdb.org/t/p/original/kR22QIdaUxI6kgwJCSwBhqCpZPk.jpg"], "poster_original": ["https://image.tmdb.org/t/p/original/6IKAmLyf6MadOd9vmSfK7MVpLJg.jpg"], "actors": {"T. J. Miller": "https://image.tmdb.org/t/p/w185/ajQNlbZCkP6HlFWZzXpdappW5Yq.jpg", "Kristen Wiig": "https://image.tmdb.org/t/p/w185/mx2f02HmPkZer0znnEi2kKO6T9u.jpg", "Javier Guti\u00e9rrez": "", "Ben Affleck": "https://image.tmdb.org/t/p/w185/br7XUbSlp4xA1r7Hcyou6YsGK2W.jpg", "Brent Briscoe": "https://image.tmdb.org/t/p/w185/7ws22WEvxt6cvMDyijZOdf9AuiS.jpg", "Clifton Collins, Jr.": "https://image.tmdb.org/t/p/w185/4gt2oqy6SjJxlbUgKIEbpQrEwas.jpg", "Lidia Porto": "", "Beth Grant": "https://image.tmdb.org/t/p/w185/8WYd8N24jUpwk4nKDGPAdt08ltM.jpg", "J.K. Simmons": "https://image.tmdb.org/t/p/w185/f2D5wGCqF9t4xsXuaUtIusVKDc1.jpg", "Lamberto Gutierrez": "", "Mila Kunis": "https://image.tmdb.org/t/p/w185/bnuXAsWKpQGqoB5SPQ8vuJLqVRV.jpg", "Gene Simmons": "https://image.tmdb.org/t/p/w185/6deam9GvZSJMEXAzEApC8McAwbE.jpg", "David Koechner": "https://image.tmdb.org/t/p/w185/inMOKno44cGQjUYkuoHNJbEgihi.jpg", "Jason Bateman": "https://image.tmdb.org/t/p/w185/yNhKtdcXy2Dah6WwDGyqlmC4NbC.jpg", "Matt Schulze": "https://image.tmdb.org/t/p/w185/aVXQNuSE7990114QZisNrkK8mJt.jpg", "Dustin Milligan": "https://image.tmdb.org/t/p/w185/irVF3ID2SLPo4QUZncMFtp9KrPV.jpg"}, "backdrop_original": ["https://image.tmdb.org/t/p/original/conED5se4VuFfzTqofAnh8uWP2S.jpg"], "clear_art": [], "logo": ["http://assets.fanart.tv/fanart/movies/12569/hdmovielogo/extract-51198cdf99e28.png"], "banner": ["http://assets.fanart.tv/fanart/movies/12569/moviebanner/extract-53e8e0fa44131.jpg"], "landscape": [], "extra_fanart": []}, "directors": ["Mike Judge"], "titles": ["Extract", "Ausgequetscht", "Mare de Azar", "Extract - Kielletyn hedelm\u00e4n maku"], "imdb": "tt1225822", "mpaa": "R", "via_tmdb": true, "actors": ["Jason Bateman", "Mila Kunis", "Kristen Wiig", "Ben Affleck"], "writers": ["Mike Judge"], "runtime": 92, "type": "movie", "released": "2009-09-03"}, "_t": "media", "releases": [{"status": "done", "info": {"protocol": "nzb", "description": "", "name": "Extract 2009 720p BluRay DTS x264-CtrlHD", "url": "https://api.nzbgeek.info/api?t=get&id=e83aaaf7d035795e5ad01ef86155bc43&apikey=4fbb6fccfcb40bf7edd645a69343b1cb", "age": 177, "name_extra": "", "seed_ratio": "", "content": "Extract 2009 720p BluRay DTS x264-CtrlHD", "score": 94, "provider": "Newznab", "seed_time": "", "provider_extra": ", api.nzbgeek.info", "detail_url": "https://api.nzbgeek.info/details/e83aaaf7d035795e5ad01ef86155bc43", "type": "movie", "id": "e83aaaf7d035795e5ad01ef86155bc43", "size": 4869}, "download_info": {"status_support": true, "id": "SABnzbd_nzo_YuKJkE", "downloader": "Sabnzbd"}, "_id": "f25526fe854b49eb89a253b6c2743142", "media_id": "eb5c9cc18ce14209a6f0c2c3ddd8eeb1", "_rev": "0006d7de", "_t": "release", "is_3d": false, "last_edit": 1412377683, "identifier": "tt1225822.DTS.720p", "quality": "720p", "files": {"nfo": ["/media/Complete/Movies/Extract (2009)/Extract.nfo"], "movie": ["/media/Complete/Movies/Extract (2009)/Extract.mkv"]}}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Extract 2009 720p BluRay DTS x264-CtrlHD", "url": "http://nzbplanet.net/api?t=get&id=553cb19085bf5ae2c82f6018d00a75c4&apikey=809cce7ee1305a403e5c1d48f2a25c38", "age": 177, "name_extra": "", "seed_ratio": "", "content": "Extract 2009 720p BluRay DTS x264-CtrlHD", "score": 94, "provider": "Newznab", "seed_time": "", "provider_extra": ", nzbplanet.net", "detail_url": "http://nzbplanet.net/details/553cb19085bf5ae2c82f6018d00a75c4", "type": "movie", "id": "553cb19085bf5ae2c82f6018d00a75c4", "size": 4869}, "_id": "9ec0397391444aa5907ebd6309d88790", "media_id": "eb5c9cc18ce14209a6f0c2c3ddd8eeb1", "_rev": "0002dab7", "_t": "release", "is_3d": false, "last_edit": 1412370707, "identifier": "9893279d3d7f2813d24fc8a353100f7d", "quality": "720p"}], "tags": ["recent"], "_rev": "0007b86f", "profile_id": "804b0178f29248ba90b2f3eeedad3a09", "_id": "eb5c9cc18ce14209a6f0c2c3ddd8eeb1", "title": "Extract", "last_edit": 1412370712, "category_id": null, "type": "movie", "files": {"image_poster": ["/var/db/couchpotato/cache/bb2eb042e47af2c2ba7f774d052eea86.jpg"]}, "identifiers": {"imdb": "tt1225822"}}, "success": true}
After trying to process another movie - the following is in the script log
[16:37:51] [INFO]::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg]
[16:37:51] [INFO]::MAIN: Checking database structure...
[16:37:51] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[16:37:51] [DEBUG]::MAIN: InitialSchema upgrade not required
[16:37:51] [DEBUG]::MAIN: Checking if we can use git commands: git version
[16:37:51] [DEBUG]::MAIN: Executing git version with your shell in /usr/local/share/nzbToMedia
[16:37:51] [DEBUG]::MAIN: git output: git version 2.1.0
[16:37:51] [DEBUG]::MAIN: git version : returned successful
[16:37:51] [DEBUG]::MAIN: Using: git
[16:37:51] [DEBUG]::MAIN: Executing git symbolic-ref -q HEAD with your shell in /usr/local/share/nzbToMedia
[16:37:51] [DEBUG]::MAIN: git output: refs/heads/master
[16:37:51] [DEBUG]::MAIN: git symbolic-ref -q HEAD : returned successful
[16:37:51] [INFO]::MAIN: Checking if git needs an update
[16:37:51] [DEBUG]::MAIN: Executing git rev-parse HEAD with your shell in /usr/local/share/nzbToMedia
[16:37:51] [DEBUG]::MAIN: git output: d904aafb99938455e3fed45d70d392eb021f1da8
[16:37:51] [DEBUG]::MAIN: git rev-parse HEAD : returned successful
[16:37:51] [DEBUG]::MAIN: Executing git fetch origin with your shell in /usr/local/share/nzbToMedia
[16:37:51] [DEBUG]::MAIN: git output:
[16:37:51] [DEBUG]::MAIN: git fetch origin : returned successful
[16:37:51] [DEBUG]::MAIN: Executing git rev-parse --verify --quiet "@{upstream}" with your shell in /usr/local/share/nzbToMedia
[16:37:51] [DEBUG]::MAIN: git output: d904aafb99938455e3fed45d70d392eb021f1da8
[16:37:51] [DEBUG]::MAIN: git rev-parse --verify --quiet "@{upstream}" : returned successful
[16:37:51] [DEBUG]::MAIN: Executing git rev-list --left-right "@{upstream}"...HEAD with your shell in /usr/local/share/nzbToMedia
[16:37:51] [DEBUG]::MAIN: git output:
[16:37:51] [DEBUG]::MAIN: git rev-list --left-right "@{upstream}"...HEAD : returned successful
[16:37:51] [DEBUG]::MAIN: cur_commit = d904aafb99938455e3fed45d70d392eb021f1da8 % (newest_commit)= d904aafb99938455e3fed45d70d392eb021f1da8, num_commits_behind = 0, num_commits_ahead = 0
[16:37:51] [INFO]::MAIN: No update needed
[16:37:51] [INFO]::MAIN: nzbToMedia Version:d904aafb99938455e3fed45d70d392eb021f1da8 Branch:master (FreeBSD 9.2-RELEASE-p10)
[16:37:51] [WARNING]::MAIN: Failed to locate ffmpeg, transcoding disabled!
[16:37:51] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature ...
[16:37:51] [WARNING]::MAIN: Failed to locate ffprobe, video corruption detection disabled!
[16:37:51] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature ...
[16:37:51] [INFO]::MAIN: #########################################################
[16:37:51] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[16:37:51] [INFO]::MAIN: #########################################################
[16:37:51] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/usr/local/share/nzbToMedia/nzbToCouchPotato.py', '/media/Complete/Movie/Primer.LiMiTED.DVDRip.XviD-DoNE.cp(tt0390384)', 'Primer.LiMiTED.DVDRip.XviD-DoNE.cp(tt0390384).nzb', 'Primer.LiMiTED.DVDRip.XviD-DoNE.cp(tt0390384)', '', 'movie', 'alt.binaries.movies.divx', '0']
[16:37:51] [INFO]::MAIN: Script triggered from SABnzbd
[16:37:51] [DEBUG]::MAIN: Adding NZB download info for directory /media/Complete/Movie/Primer.LiMiTED.DVDRip.XviD-DoNE.cp(tt0390384) to database
[16:37:51] [INFO]::MAIN: Auto-detected SECTION:CouchPotato
[16:37:51] [ERROR]::MAIN: Remote Path {} is not valid for CouchPotato:movie Please set this to either 0 to disable or 1 to enable!
[16:37:51] [INFO]::MAIN: Calling CouchPotato:movie to post-process:Primer.LiMiTED.DVDRip.XviD-DoNE.cp(tt0390384).nzb
[16:37:51] [INFO]::MAIN: Attemping imdbID lookup for Primer.LiMiTED.DVDRip.XviD-DoNE.cp(tt0390384).nzb
[16:37:51] [INFO]::MAIN: Searching folder and file names for imdbID ...
[16:37:51] [INFO]::MAIN: Found imdbID [tt0390384]
[16:37:51] [DEBUG]::MAIN: Opening URL: http://localhost:5050/api//media.get with PARAMS: {'id': 'tt0390384'}
[16:37:51] [ERROR]::MAIN: CouchPotato returned the following non-json data
[16:37:51] [ERROR]::MAIN:
[16:37:51] [ERROR]::MAIN: <!doctype html>
[16:37:51] [ERROR]::MAIN: <html>
[16:37:51] [ERROR]::MAIN: <head>
[16:37:51] [ERROR]::MAIN: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
[16:37:51] [ERROR]::MAIN: <meta name="apple-mobile-web-app-capable" content="yes">
[16:37:51] [ERROR]::MAIN: <meta name="mobile-web-app-capable" content="yes">
[16:37:51] [ERROR]::MAIN: <meta http-equiv="X-UA-Compatible" content="IE=edge" />
[16:37:51] [ERROR]::MAIN:
[16:37:51] [ERROR]::MAIN: <link rel="stylesheet" href="/couchpotato/minified/front.css?1412377671" type="text/css">
[16:37:51] [ERROR]::MAIN:
[16:37:51] [ERROR]::MAIN: <script type="text/javascript" src="/couchpotato/minified/front.js?1412377674"></script>
[16:37:51] [ERROR]::MAIN:
[16:37:51] [ERROR]::MAIN: <script type="text/javascript" src="/couchpotato/minified/head.js?1412377675"></script>
[16:37:51] [ERROR]::MAIN:
[16:37:51] [ERROR]::MAIN: <link rel="stylesheet" href="/couchpotato/minified/head.css?1412377671" type="text/css">
[16:37:51] [ERROR]::MAIN: <link href="/couchpotato/static/images/favicon.ico" rel="icon" type="image/x-icon" />
[16:37:51] [ERROR]::MAIN: <link rel="apple-touch-icon" href="/couchpotato/static/images/homescreen.png" />
[16:37:51] [ERROR]::MAIN: <script type="text/javascript" src="https://www.youtube.com/player_api" defer="defer"></script>
[16:37:51] [ERROR]::MAIN: <script type="text/javascript">
[16:37:51] [ERROR]::MAIN: window.addEvent('load', function(){
[16:37:51] [ERROR]::MAIN: if(window.getSize().x <= 480)
[16:37:51] [ERROR]::MAIN: setTimeout(function(){
[16:37:51] [ERROR]::MAIN: window.scrollTo(0, 1);
[16:37:51] [ERROR]::MAIN: window.scrollTo(0, 0);
[16:37:51] [ERROR]::MAIN: }, 100);
[16:37:51] [ERROR]::MAIN: });
[16:37:51] [ERROR]::MAIN: window.addEvent('domready', function() {
[16:37:51] [ERROR]::MAIN: new Uniform();
[16:37:51] [ERROR]::MAIN: Api.setup({
[16:37:51] [ERROR]::MAIN: 'url': "/couchpotato/api/e35c20a3d718458c961a64d8cee4e930/",
[16:37:51] [ERROR]::MAIN: 'path_sep': "/",
[16:37:51] [ERROR]::MAIN: 'is_remote': false
[16:37:51] [ERROR]::MAIN: });
[16:37:51] [ERROR]::MAIN: $(document.body).set('data-api', window.location.protocol + '//' + window.location.host + Api.createUrl().replace('/default/', '/'));
[16:37:51] [ERROR]::MAIN: // Catch errors
[16:37:51] [ERROR]::MAIN: window.onerror = function(message, file, line){
[16:37:51] [ERROR]::MAIN: p(message, file, line);
[16:37:51] [ERROR]::MAIN: Api.request('logging.log', {
[16:37:51] [ERROR]::MAIN: 'data': {
[16:37:51] [ERROR]::MAIN: 'type': 'error',
[16:37:51] [ERROR]::MAIN: 'message': Browser.name + ' ' + Browser.version + ': \n' + message,
[16:37:51] [ERROR]::MAIN: 'page': window.location.href.replace(window.location.host, 'HOST'),
[16:37:51] [ERROR]::MAIN: 'file': file.replace(window.location.host, 'HOST'),
[16:37:51] [ERROR]::MAIN: 'line': line
[16:37:51] [ERROR]::MAIN: }
[16:37:51] [ERROR]::MAIN: });
[16:37:51] [ERROR]::MAIN: return true;
[16:37:51] [ERROR]::MAIN: }
[16:37:51] [ERROR]::MAIN: Quality.setup({
[16:37:51] [ERROR]::MAIN: 'profiles': [{"_rev": "00078752", "finish": [true, true, true, true], "hide": false, "_id": "804b0178f29248ba90b2f3eeedad3a09", "_t": "profile", "label": "Best", "qualities": ["720p", "1080p", "brrip", "dvdrip"], "stop_after": [0, 0, 0, 0], "wait_for": [0, 0, 0, 0], "order": 0, "3d": [false, false, false, false]}, {"_rev": "0007c622", "finish": [true, true], "hide": false, "_id": "1d99a1c393ab422da84e66958ae68330", "_t": "profile", "label": "HD", "qualities": ["720p", "1080p"], "stop_after": [0, 0], "wait_for": [0, 0], "order": 1, "3d": [false, false]}, {"_rev": "000709f0", "finish": [true, true], "hide": false, "_id": "99ab635b8698493e8fb6fde95740ddfe", "_t": "profile", "label": "SD", "qualities": ["dvdrip", "dvdr"], "stop_after": [0, 0], "wait_for": [0, 0], "order": 2, "3d": [false, false]}, {"_rev": "0007cb11", "finish": [true, true, true, true], "hide": true, "_id": "03afbbe8619b4cbf87fd60e4502c822e", "_t": "profile", "label": "Prefer 3D HD", "qualities": ["1080p", "720p", "720p", "1080p"], "stop_after": [0, 0, 0, 0], "wait_for": [0, 0, 0, 0], "order": 3, "3d": [true, true, false, false]}, {"_rev": "000713ac", "finish": [true, true], "hide": true, "_id": "3a486eb0d8984ad18c7ee92761f58d5f", "_t": "profile", "label": "3D HD", "qualities": ["1080p", "720p"], "stop_after": [0, 0], "wait_for": [0, 0], "order": 4, "3d": [true, true]}, {"core": true, "_rev": "000705f8", "finish": [true], "hide": false, "_id": "7552021020bf48e787ca9c1d73555ae6", "_t": "profile", "label": "BR-Disk", "qualities": ["bd50"], "wait_for": [0], "order": 5}, {"core": true, "_rev": "000769ab", "finish": [true], "hide": false, "_id": "e0cabb0d2c3d4cdaacfe170123771161", "_t": "profile", "label": "1080p", "qualities": ["1080p"], "wait_for": [0], "order": 6}, {"core": true, "_rev": "000773d5", "finish": [true], "hide": false, "_id": "6c58b6342af749c9ba9caea987a6f96c", "_t": "profile", "label": "720p", "qualities": ["720p"], "wait_for": [0], "order": 7}, {"core": true, "_rev": "0007552d", "finish": [true], "hide": false, "_id": "7aa11a2cea5d46e1ab82ef830c312c03", "_t": "profile", "label": "BR-Rip", "qualities": ["brrip"], "wait_for": [0], "order": 8}, {"core": true, "_rev": "0007848d", "finish": [true], "hide": false, "_id": "00211acfc93e4ecba5e34c3d9a7285fb", "_t": "profile", "label": "DVD-R", "qualities": ["dvdr"], "wait_for": [0], "order": 9}, {"core": true, "_rev": "0007f594", "finish": [true], "hide": false, "_id": "94028a17bc814fae913221aa637fdc56", "_t": "profile", "label": "DVD-Rip", "qualities": ["dvdrip"], "wait_for": [0], "order": 10}, {"core": true, "_rev": "000718b9", "finish": [true], "hide": false, "_id": "b616c1edc0ad4a45a14073eda0b69384", "_t": "profile", "label": "Screener", "qualities": ["scr"], "wait_for": [0], "order": 11}, {"core": true, "_rev": "00073de0", "finish": [true], "hide": true, "_id": "87e1747570434597b26506c2834e7d35", "_t": "profile", "label": "R5", "qualities": ["r5"], "wait_for": [0], "order": 12}, {"core": true, "_rev": "0007c058", "finish": [true], "hide": true, "_id": "0f027ef2315b47f0bea1162fb09d899c", "_t": "profile", "label": "TeleCine", "qualities": ["tc"], "wait_for": [0], "order": 13}, {"core": true, "_rev": "00072ac0", "finish": [true], "hide": true, "_id": "5f654cbe8e5b48569dba145f3ea41006", "_t": "profile", "label": "TeleSync", "qualities": ["ts"], "wait_for": [0], "order": 14}, {"core": true, "_rev": "00073d1a", "finish": [true], "hide": true, "_id": "4cb45454618f4258b211abbc49c205d2", "_t": "profile", "label": "Cam", "qualities": ["cam"], "wait_for": [0], "order": 15}],
[16:37:51] [ERROR]::MAIN: 'qualities': [{"_id": "40e336c86fe949b09c42b429f3287f42", "tags": ["bdmv", "certificate", ["complete", "bluray"], "avc", "mvc"], "_rev": "00010d0e", "_t": "quality", "size_max": 60000, "size_min": 20000, "label": "BR-Disk", "order": 0, "ext": ["iso", "img"], "is_3d": false, "allow_3d": true, "allow": ["1080p"], "alternative": ["bd25", ["br", "disk"]], "identifier": "bd50", "median_size": 40000, "hd": true, "size": [20000, 60000]}, {"_rev": "00012b95", "identifier": "1080p", "size_min": 4000, "tags": ["m2ts", "x264", "h264"], "_id": "113dcf06d16443468f3f7d09152cd2f0", "_t": "quality", "size_max": 20000, "label": "1080p", "height": 1080, "order": 1, "width": 1920, "ext": ["mkv", "m2ts", "ts"], "is_3d": false, "allow": [], "alternative": [], "allow_3d": true, "median_size": 10000, "hd": true, "size": [4000, 20000]}, {"_rev": "0001032b", "identifier": "720p", "size_min": 3000, "tags": ["x264", "h264"], "_id": "5bd19ff95c6d40709e91246a764f07a2", "_t": "quality", "size_max": 10000, "label": "720p", "height": 720, "order": 2, "width": 1280, "ext": ["mkv", "ts"], "is_3d": false, "allow": [], "alternative": [], "allow_3d": true, "median_size": 5500, "hd": true, "size": [3000, 10000]}, {"_id": "0a1e7b10b23849138066b476c6f25871", "tags": ["webdl", ["web", "dl"]], "_rev": "0001b698", "_t": "quality", "size_max": 7000, "size_min": 700, "label": "BR-Rip", "order": 3, "ext": ["mp4", "avi"], "is_3d": false, "allow_3d": true, "allow": ["720p", "1080p"], "alternative": ["bdrip", ["br", "rip"], "hdtv", "hdrip"], "identifier": "brrip", "median_size": 2000, "hd": true, "size": [700, 7000]}, {"_id": "7f29be20489c4bce834a1ea7e6cbf856", "tags": ["pal", "ntsc", "video_ts", "audio_ts", ["dvd", "r"], "dvd9"], "_rev": "0001d4d7", "_t": "quality", "size_max": 10000, "size_min": 3000, "label": "DVD-R", "order": 4, "ext": ["iso", "img", "vob"], "is_3d": false, "allow": [], "alternative": ["br2dvd", ["dvd", "r"]], "identifier": "dvdr", "median_size": 4500, "size": [3000, 10000]}, {"_id": "c1c3313e11e1461caaa106e3fd0c4df2", "tags": [["dvd", "rip"], ["dvd", "xvid"], ["dvd", "divx"]], "_rev": "00016555", "_t": "quality", "size_max": 2400, "size_min": 600, "label": "DVD-Rip", "order": 5, "width": 720, "ext": ["avi"], "is_3d": false, "allow": [], "alternative": [["dvd", "rip"]], "identifier": "dvdrip", "median_size": 1500, "size": [600, 2400]}, {"_id": "6dcf80b8dd0a4aa68d440b57f34eaec5", "tags": [], "_rev": "00010eaf", "_t": "quality", "size_max": 1600, "size_min": 600, "label": "Screener", "order": 6, "ext": [], "is_3d": false, "allow": ["dvdr", "dvdrip", "720p", "1080p"], "alternative": ["screener", "dvdscr", "ppvrip", "dvdscreener", "hdscr", "webrip", ["web", "rip"]], "identifier": "scr", "median_size": 700, "size": [600, 1600]}, {"_rev": "00014448", "order": 7, "size_min": 600, "is_3d": false, "alternative": ["r6"], "size": [600, 1000], "identifier": "r5", "_t": "quality", "size_max": 1000, "label": "R5", "ext": [], "allow": ["dvdr", "720p"], "_id": "966f90fe95f24590879aa631ad798d1b", "median_size": 700}, {"_rev": "0001c38c", "order": 8, "size_min": 600, "is_3d": false, "alternative": ["telecine"], "size": [600, 1000], "identifier": "tc", "_t": "quality", "size_max": 1000, "label": "TeleCine", "ext": [], "allow": ["720p"], "_id": "46d00723c55e41dd908da7e12a6c6a62", "median_size": 700}, {"_rev": "00011676", "order": 9, "size_min": 600, "is_3d": false, "alternative": ["telesync", "hdts"], "size": [600, 1000], "identifier": "ts", "_t": "quality", "size_max": 1000, "label": "TeleSync", "ext": [], "allow": ["720p"], "_id": "5b247510ad7940eabcd729e362125618", "median_size": 700}, {"_rev": "00013839", "order": 10, "size_min": 600, "is_3d": false, "alternative": ["camrip", "hdcam"], "size": [600, 1000], "identifier": "cam", "_t": "quality", "size_max": 1000, "label": "Cam", "ext": [], "allow": ["720p"], "_id": "53a87b57051d4c5d9afca70904a61de4", "median_size": 700}]
[16:37:51] [ERROR]::MAIN: });
[16:37:51] [ERROR]::MAIN: CategoryList.setup([]);
[16:37:51] [ERROR]::MAIN: App.setup({
[16:37:51] [ERROR]::MAIN: 'base_url': "/couchpotato/",
[16:37:51] [ERROR]::MAIN: 'args': "['--data_dir', '/var/db/couchpotato', '--pid_file', '/var/db/couchpotato/couchpotato.pid', '--daemon']",
[16:37:51] [ERROR]::MAIN: 'options': "Namespace(config_file='/var/db/couchpotato/settings.conf', console_log=False, daemon=True, data_dir='/var/db/couchpotato', debug=False, pid_file='/var/db/couchpotato/couchpotato.pid', quiet=False)",
[16:37:51] [ERROR]::MAIN: 'app_dir': "/usr/pbi/couchpotato-amd64/share/couchpotato/CouchPotatoServer",
[16:37:51] [ERROR]::MAIN: 'data_dir': "/var/db/couchpotato",
[16:37:51] [ERROR]::MAIN: 'pid': "68567 ",
[16:37:51] [ERROR]::MAIN: 'userscript_version': 25
[16:37:51] [ERROR]::MAIN: });
[16:37:51] [ERROR]::MAIN: })
[16:37:51] [ERROR]::MAIN:
[16:37:51] [ERROR]::MAIN: </script>
[16:37:51] [ERROR]::MAIN: <title>CouchPotato</title>
[16:37:51] [ERROR]::MAIN: </head>
[16:37:51] [ERROR]::MAIN: <body></body>
[16:37:51] [ERROR]::MAIN: </html>
[16:37:51] [DEBUG]::COUCHPOTATO: Opening URL: http://localhost:5050/api//renamer.scan with PARAMS: {'media_folder': '/media/Complete/Movie/Primer.LiMiTED.DVDRip.XviD-DoNE.cp(tt0390384)'}
[16:37:51] [POSTPROCESS]::COUCHPOTATO: Starting renamer scan for Primer.LiMiTED.DVDRip.XviD-DoNE.cp(tt0390384).nzb
Traceback (most recent call last):
File "/usr/local/share/nzbToMedia/nzbToCouchPotato.py", line 247, in <module>
result = nzbToMedia.main(sys.argv, section)
File "/usr/local/share/nzbToMedia/nzbToMedia.py", line 691, in main
download_id='')
File "/usr/local/share/nzbToMedia/nzbToMedia.py", line 580, in process
inputCategory, failureLink)
File "/usr/local/share/nzbToMedia/nzbtomedia/autoProcess/autoProcessMovie.py", line 240, in process
result = r.json()
File "/usr/local/share/nzbToMedia/libs/requests/models.py", line 759, in json
return json.loads(self.text, **kwargs)
File "/usr/local/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Exception AttributeError: "'NoneType' object has no attribute 'path'" in <bound method PosixProcess.__del__ of <nzbtomedia.nzbToMediaUtil.PosixProcess instance at 0x807fc1098>> ignored
something funny is happening with your CouchPotato. What os/system is this running on?
I am on FreeNAS-9.2.1.7-RELEASE-x64 (fdbe9a0). SickBeard and the script is running perfect.
one thing that is happening, on the config file for the nzb, it keeps adding the folling, so it has 2 sections under coupotato. (it adds the top section, i delete it, and it always comes back.)
[CouchPotato]
#### autoProcessing for Movies
#### movie - category that gets called for post-processing with CPS
[[movie]]
enabled = 0
apikey = ""
host = localhost
port = 5050
###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ######
ssl = 0
web_root = ""
# Enable/Disable linking for Torrents
Torrent_NoLink = 0
method = renamer
delete_failed = 0
wait_for = 2
extract = 1
# Set this to minimum required size to consider a media file valid (in MB)
minSize = 0
# Enable/Disable deleteing ignored files (samples and invalid media files)
delete_ignored = 0
##### Enable if Couchpotato is on a remote server for this category
remote_path = 0
##### Set to path where download client places completed downloads locally for this category
watch_dir = ""
[[Movie]]
enabled = 1
apikey = e35c20a3d718458c961a64d8cee4e930
host = 192.168.1.4
port = 5050
ssl = 0
web_root = /couchpotato
Torrent_NoLink = 0
method = renamer
delete_failed = 1
wait_for = 2
extract = 1
minSize = 0
delete_ignored = 1
remote_path = 0
watch_dir = media\Complete\Movie
ok, the fact that the [[movie]]
section is recreated isn't an issue. this always happens when the category you are using isn't movie
there are 2 problems happening here.
First, the category in SABnzbd is movie
not Movie
. so you need to enter your config under the [[movie]]
section, not [[Movie]]
OR you need to change the category in SABnzbd to Movie
.
This is why, in the last log, it didn't pass any apikey, or webroot.
Second, is your web_root really /couchpotato
? have you set this in the CouchPotato settings? if so, are you in fact using reverse proxy?
in addition, watch_dir = media\Complete\Movie
should be watch_dir = /media/Complete/Movie
So i did have a reverse proxy set up, rechecked that, went through your fixes above, and continued to get the same error. i decided to just use couch potato to manage (without the script), thanks for your help, as an FYI the sickbeard script is running without an issue... so not sure what the deal was. But thanks again for all your help!
No worries. Sorry we couldn't get this working fully. I'm guessing there is something funny going on between reverse proxy and CoucPotato when doing the api calls...
I am getting the following from Couch Potato. My setup is on freenas.