Closed marc-cwm closed 10 years ago
Opening URL: http://localhost:5050/api//media.get
did you remove the api key from this line... or have you not put the CouchPotato apikey in autoProcessMedia.cfg
[CouchPotato]
[[movies]]
apikey =
I removed it, it did have brackets around the word 'removed' but, it seems like github just removed the whole thing :/. Here's the log in a pastebin, seems to have preserved everything: http://paste.ubuntu.com/7766353/
the apikey does exist there, and it exists in autoprocessmedia.cfg.
What version of CouchPotato are you using?
If you set
[CouchPotato]
[[movies]]
wath_dir = /share/HDB_DATA/Pub_2/Download/_complete/movies
You should be able to run this script manually in terminal...
/opt/share/nzbget/ppscripts/nzbToMedia/nzbToCouchPotato.py
If this fails, it should print a trace back to terminal... Please post the output here (or pastebin)
Couchpotato version is... should be on the master branch, the version number reported on the webpage is: 45b2dff6. I've checked the couchpotato logs, and as far as i can see, it never seems to realize that something is even trying to import into it. I'm guessing that was supposed to say 'watch_dir'? I'm not sure, but i definitely don't have an existing 'wath_dir', should i create it? for the time being, i've put the file path in watch_dir.
Opening a remoote connection and entering that command results in the full log here: http://paste.ubuntu.com/7768102/ To skip to the end, this did result in a traceback:
Traceback (most recent call last):
File "/opt/share/nzbget/ppscripts/nzbToMedia/nzbToCouchPotato.py", line 147, in <module>
result = nzbToMedia.main(sys.argv, section)
File "/share/HDA_DATA/Download/nzbToMedia/nzbToMedia.py", line 572, in main
download_id=download_id, inputCategory=subsection)
File "/share/HDA_DATA/Download/nzbToMedia/nzbToMedia.py", line 418, in process
inputCategory)
File "/share/HDA_DATA/Download/nzbToMedia/nzbtomedia/autoProcess/autoProcessMovie.py", line 128, in process
release = self.get_release(baseURL, imdbid, download_id)
File "/share/HDA_DATA/Download/nzbToMedia/nzbtomedia/autoProcess/autoProcessMovie.py", line 34, in get_release
result = r.json()
File "/share/HDA_DATA/Download/nzbToMedia/libs/requests/models.py", line 759, in json
return json.loads(self.text, **kwargs)
File "/opt/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/opt/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Can you show the output if you past the following into your browser?
http://localhost:5050/api/<removed>/media.get/?id=tt2390237
I don't have a browser on the server that couchpotato/nzbget resides on, but it is on my local network, accessing it from my primary desktop with the local ip address instead of localhost results in the below, as usual apikeys replaced with removed, not sure if will paste properly here, but going to try.
{"media": {"status": "ignored", "info": {"rating": {"imdb": [6.2999999999999998, 4051]}, "genres": ["Comedy"], "tmdb_id": 201086, "plot": "1987: A 13 year old natural born dancer with fire in his heels and snakes in his hips is working himself up to explode all over the UK Junior Salsa Championships. But then: a freakish bullying incident on the mean streets of London robs him of his confidence, and our young hero finds his life diverted down a very different path. So it is that 22 years later, an adult Bruce Garrett (Nick Frost) finds himself out-of-shape and unloved - trapped in a downward spiral of self-pity, repression and Nando's take-outs. Only Julia (Rashida Jones), his smart, funny, gorgeous new American boss, gives him reason to live. But she's untouchable. Out of his league, so he imagines, with her perfect smile and perfect life. Unknown to Bruce however, Julia has issues all of her own. Luckily for him, she also has a secret passion. Then there's Drew (Chris O'Dowd), his alpha male colleague and horny king-monkey of the office. With Drew making no secret of his desire to get (his words) \"all up inside Julia\".", "tagline": "", "release_date": {"dvd": 1406606400, "expires": 1404810702, "theater": 1397188800, "bluray": true}, "original_title": "Cuban Fury", "actor_roles": {"Ben Radcliffe": "Young Bruce", "Steve Oram": "Security Guard Kevin", "Rashida Jones": "Julia", "Alexandra Roach": "Helen", "Rory Kinnear": "Gary", "Isabella Steinbarth": "Young Sam", "Ian McShane": "Ron Parfitt", "Olivia Colman": "Sam", "Chris O'Dowd": "Drew", "Nick Frost": "Bruce"}, "via_imdb": true, "mpaa": "R", "via_tmdb": true, "directors": ["James Griffiths"], "titles": ["Cuban Fury"], "imdb": "tt2390237", "year": 2014, "images": {"disc_art": ["http://assets.fanart.tv/fanart/movies/201086/moviedisc/cuban-fury-53a3d1a8a4fc6.png"], "poster": ["https://image.tmdb.org/t/p/w154/AkVDoXUHYZ9cmoHX1DcJDu5s61K.jpg", "http://ia.media-imdb.com/images/M/MV5BMTcwMTgwMjkzM15BMl5BanBnXkFtZTgwNDYzMDY0MTE@._V1_.jpg", "http://ia.media-imdb.com/images/M/MV5BMTcwMTgwMjkzM15BMl5BanBnXkFtZTgwNDYzMDY0MTE@._V1_SX300.jpg"], "extra_thumbs": ["https://image.tmdb.org/t/p/original/2PjOkNJoxc8FVWT6Fs6HniBOqHt.jpg", "https://image.tmdb.org/t/p/original/bWCCv82kSNYkPwmbSFtrEvqhIhP.jpg", "https://image.tmdb.org/t/p/original/yyVbzx3iYyIUWJRXDqRY2vMIwV6.jpg", "https://image.tmdb.org/t/p/original/xLbTxYY6Nruda2XpKrsCptGq7lS.jpg"], "poster_original": ["https://image.tmdb.org/t/p/original/AkVDoXUHYZ9cmoHX1DcJDu5s61K.jpg"], "landscape": [], "actors": {"Steve Oram": "https://image.tmdb.org/t/p/w185/xHlaXXdSROQBIJOD69PCloDShjb.jpg", "Alexandra Roach": "https://image.tmdb.org/t/p/w185/jWJlrPYvdDN2kMCWKDkDnnFm1mP.jpg", "Rashida Jones": "https://image.tmdb.org/t/p/w185/1yw0MU5qXjvUqehm9Z2u0Fn5nxo.jpg", "Rory Kinnear": "https://image.tmdb.org/t/p/w185/wfBmg2FVEDQCCFnjiTC3lhg1THP.jpg", "Ian McShane": "https://image.tmdb.org/t/p/w185/pyjFI4J5gVcaW0UeiIcQmJHol7w.jpg", "Olivia Colman": "https://image.tmdb.org/t/p/w185/25zMpY01RbxLifJnnz0EKGfQdgy.jpg", "Chris O'Dowd": "https://image.tmdb.org/t/p/w185/hmTLgS5aT1t1sdg1GfdXM9yYUPI.jpg", "Nick Frost": "https://image.tmdb.org/t/p/w185/33zuHnAnM1aiUbDZX84GR7UQjTa.jpg"}, "backdrop_original": ["http://assets.fanart.tv/fanart/movies/201086/moviebackground/cuban-fury-53b666ad3ed77.jpg", "https://image.tmdb.org/t/p/original/pqOiktY0X8FLsVFkZqHgJGiOshu.jpg"], "clear_art": [], "logo": ["http://assets.fanart.tv/fanart/movies/201086/hdmovielogo/cuban-fury-5288ac2ecc56e.png"], "banner": [], "backdrop": ["https://image.tmdb.org/t/p/w1280/pqOiktY0X8FLsVFkZqHgJGiOshu.jpg"], "extra_fanart": []}, "actors": ["Ben Radcliffe", "Ian McShane", "Isabella Steinbarth", "Brandon Robinson"], "writers": ["Jon Brown", "Nick Frost (original idea)"], "runtime": 98, "type": "movie", "released": "2014-02-14"}, "_t": "media", "releases": [{"status": "done", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.720p.BRRip.H264.AAC-MAJESTiC", "url": "https://www.usenet-crawler.com/api?t=get&id=3ba95f775be892188aa3d68550bf58fd&apikey=<removed>", "age": 24, "name_extra": "", "seed_ratio": "", "content": "Cuban.Fury.2014.720p.BRRip.H264.AAC-MAJESTiC", "score": 46, "provider": "Newznab", "seed_time": "", "provider_extra": ", www.usenet-crawler.com", "detail_url": "https://www.usenet-crawler.com/details/3ba95f775be892188aa3d68550bf58fd", "type": "movie", "id": "3ba95f775be892188aa3d68550bf58fd", "size": 2489}, "download_info": {"status_support": true, "id": "413fc689c91b2e94b6446f77de137d28", "downloader": "NZBGet"}, "_id": "0ff71807dcc245a5987bb8b2aab65d5f", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "00041ddd", "_t": "release", "is_3d": 0, "last_edit": 1404790577, "identifier": "413fc689c91b2e94b6446f77de137d28", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.720p.WEBRip.x264.AC3-MiLLENiUM", "url": "http://api.dognzb.cr/api?t=get&id=50c439f3f93ecbeb03ac55d6bf1d2b56&apikey=<removed>", "age": 22, "name_extra": "", "seed_ratio": "", "content": "\n\t\t\t\t\t\t <div class=\"row-fluid\">\n\t\t\t\t\t\t\t <table cellpadding=0 cellspacing=0>\n\t\t\t\t\t\t\t\t <tr valign=\"top\">\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t <td width=110><img style=\"margin-left:10px; margin-bottom:10px; float:right;\" src=\"http://dognzb.cr/content/covers/movies/thumbs/2390237.png\" border=\"0\" /><\/td>\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t <b>Name:<\/b> Cuban.Fury.2014.720p.WEBRip.x264.AC3-MiLLENiUM<br /><b>Category:<\/b> Movies > HD<br /><b>Size:<\/b> 2.80 GB<br /><b>Post Date:<\/b> June 15, 2014 4:36 PM<br /><b>Group:<\/b> alt.binaries.test<br />\n\t\t\t\t\t\t\t\t\t\t <b>Year:<\/b> 2014<br /> <b>Rating:<\/b> 65<br /> <b>Genre:<\/b> Comedy<br /> \n\t\t\t\t\t\t\t\t\t <\/td>\n\t\t\t\t\t\t\t\t <\/tr>\n\t\t\t\t\t\t\t <\/table>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t\t ", "score": 37, "provider": "Newznab", "seed_time": "", "provider_extra": ", api.dognzb.cr", "detail_url": "http://api.dognzb.cr/details/50c439f3f93ecbeb03ac55d6bf1d2b56", "type": "movie", "id": "50c439f3f93ecbeb03ac55d6bf1d2b56", "size": 2871}, "_id": "c37dbca31f55400491cec1dd426c90a8", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "000205bf", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "9c84f2ea185643c991a5b8e0905f42bc", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban Fury.2014.720p.WEBRip.x264.AC3-MiLLENiUM", "url": "https://www.usenet-crawler.com/api?t=get&id=8f3be0679442d0fe061be5da55486de4&apikey=<removed>", "age": 21, "name_extra": "", "seed_ratio": "", "content": "Cuban Fury.2014.720p.WEBRip.x264.AC3-MiLLENiUM", "score": 37, "provider": "Newznab", "seed_time": "", "provider_extra": ", www.usenet-crawler.com", "detail_url": "https://www.usenet-crawler.com/details/8f3be0679442d0fe061be5da55486de4", "type": "movie", "id": "8f3be0679442d0fe061be5da55486de4", "size": 2871}, "_id": "8b8ad1754ebd4e7c816d7fc9384821cc", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "000246ed", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "19aa163f9fad220d9907c5ffd84e646c", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.BRRip.x264.720p-NPW", "url": "http://api.dognzb.cr/api?t=get&id=f3da8244cc344dbca70641e139329a76&apikey=<removed>", "age": 24, "name_extra": "", "seed_ratio": "", "content": "\n\t\t\t\t\t\t <div class=\"row-fluid\">\n\t\t\t\t\t\t\t <table cellpadding=0 cellspacing=0>\n\t\t\t\t\t\t\t\t <tr valign=\"top\">\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t <td width=110><img style=\"margin-left:10px; margin-bottom:10px; float:right;\" src=\"http://dognzb.cr/content/covers/movies/thumbs/2390237.png\" border=\"0\" /><\/td>\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t <b>Name:<\/b> Cuban.Fury.2014.BRRip.x264.720p-NPW<br /><b>Category:<\/b> Movies > HD<br /><b>Size:<\/b> 2.43 GB<br /><b>Post Date:<\/b> June 13, 2014 9:18 PM<br /><b>Group:<\/b> alt.binaries.warez.win95-apps<br />\n\t\t\t\t\t\t\t\t\t\t <b>Year:<\/b> 2014<br /> <b>Rating:<\/b> 65<br /> <b>Genre:<\/b> Comedy<br /> \n\t\t\t\t\t\t\t\t\t <\/td>\n\t\t\t\t\t\t\t\t <\/tr>\n\t\t\t\t\t\t\t <\/table>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t\t ", "score": 36, "provider": "Newznab", "seed_time": "", "provider_extra": ", api.dognzb.cr", "detail_url": "http://api.dognzb.cr/details/f3da8244cc344dbca70641e139329a76", "type": "movie", "id": "f3da8244cc344dbca70641e139329a76", "size": 2488}, "_id": "4511ac774949416fab31e6edde27e9a5", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "0002c168", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "a5e1ea990e868caa5e0e645354af5016", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.Bdrip.x264-AMIABLE", "url": "http://api.dognzb.cr/api?t=get&id=6f85c38e10e0995ad2399aa5759829f8&apikey=<removed>", "age": 28, "name_extra": "", "seed_ratio": "", "content": "\n\t\t\t\t\t\t <div class=\"row-fluid\">\n\t\t\t\t\t\t\t <table cellpadding=0 cellspacing=0>\n\t\t\t\t\t\t\t\t <tr valign=\"top\">\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t <td width=110><img style=\"margin-left:10px; margin-bottom:10px; float:right;\" src=\"http://dognzb.cr/content/covers/movies/thumbs/2390237.png\" border=\"0\" /><\/td>\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t <b>Name:<\/b> Cuban.Fury.2014.Bdrip.x264-AMIABLE<br /><b>Category:<\/b> Movies > HD<br /><b>Size:<\/b> 864 MB<br /><b>Post Date:<\/b> June 09, 2014 1:37 PM<br /><b>Group:<\/b> alt.binaries.boneless<br />\n\t\t\t\t\t\t\t\t\t\t <b>Year:<\/b> 2014<br /> <b>Rating:<\/b> 65<br /> <b>Genre:<\/b> Comedy<br /> \n\t\t\t\t\t\t\t\t\t <\/td>\n\t\t\t\t\t\t\t\t <\/tr>\n\t\t\t\t\t\t\t <\/table>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t\t ", "score": 36, "provider": "Newznab", "seed_time": "", "provider_extra": ", api.dognzb.cr", "detail_url": "http://api.dognzb.cr/details/6f85c38e10e0995ad2399aa5759829f8", "type": "movie", "id": "6f85c38e10e0995ad2399aa5759829f8", "size": 864}, "_id": "75c021f22a06414dae407479c557a65b", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "0002611a", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "63a8900ca8ea3255d3b7d60fab924386", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.BDRip.x264-AMIABLE", "url": "http://api.dognzb.cr/api?t=get&id=129f1e6ec2daf89dbb68761cc76fe7b8&apikey=<removed>", "age": 28, "name_extra": "", "seed_ratio": "", "content": "\n\t\t\t\t\t\t <div class=\"row-fluid\">\n\t\t\t\t\t\t\t <table cellpadding=0 cellspacing=0>\n\t\t\t\t\t\t\t\t <tr valign=\"top\">\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t <td width=110><img style=\"margin-left:10px; margin-bottom:10px; float:right;\" src=\"http://dognzb.cr/content/covers/movies/thumbs/2390237.png\" border=\"0\" /><\/td>\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t <b>Name:<\/b> Cuban.Fury.2014.BDRip.x264-AMIABLE<br /><b>Category:<\/b> Movies > SD<br /><b>Size:<\/b> 829 MB<br /><b>Post Date:<\/b> June 09, 2014 12:20 PM<br /><b>Group:<\/b> alt.binaries.warez.win95-apps<br />\n\t\t\t\t\t\t\t\t\t\t <b>Year:<\/b> 2014<br /> <b>Rating:<\/b> 65<br /> <b>Genre:<\/b> Comedy<br /> \n\t\t\t\t\t\t\t\t\t <\/td>\n\t\t\t\t\t\t\t\t <\/tr>\n\t\t\t\t\t\t\t <\/table>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t\t ", "score": 36, "provider": "Newznab", "seed_time": "", "provider_extra": ", api.dognzb.cr", "detail_url": "http://api.dognzb.cr/details/129f1e6ec2daf89dbb68761cc76fe7b8", "type": "movie", "id": "129f1e6ec2daf89dbb68761cc76fe7b8", "size": 828}, "_id": "afa11fdbc6da4264bdde7be95772d4b1", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "000232b3", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "0fb22e467ee1f05e187916aa3016336e", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.BDRip.x264-AMIABLE", "url": "http://api.dognzb.cr/api?t=get&id=510711cc9b7c11082d3e7146d2c4b5af&apikey=<removed>", "age": 28, "name_extra": "", "seed_ratio": "", "content": "\n\t\t\t\t\t\t <div class=\"row-fluid\">\n\t\t\t\t\t\t\t <table cellpadding=0 cellspacing=0>\n\t\t\t\t\t\t\t\t <tr valign=\"top\">\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t <td width=110><img style=\"margin-left:10px; margin-bottom:10px; float:right;\" src=\"http://dognzb.cr/content/covers/movies/thumbs/2390237.png\" border=\"0\" /><\/td>\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t <b>Name:<\/b> Cuban.Fury.2014.BDRip.x264-AMIABLE<br /><b>Category:<\/b> Movies > SD<br /><b>Size:<\/b> 872 MB<br /><b>Post Date:<\/b> June 09, 2014 10:56 AM<br /><b>Group:<\/b> alt.binaries.moovee<br />\n\t\t\t\t\t\t\t\t\t\t <b>Year:<\/b> 2014<br /> <b>Rating:<\/b> 65<br /> <b>Genre:<\/b> Comedy<br /> \n\t\t\t\t\t\t\t\t\t <\/td>\n\t\t\t\t\t\t\t\t <\/tr>\n\t\t\t\t\t\t\t <\/table>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t\t ", "score": 36, "provider": "Newznab", "seed_time": "", "provider_extra": ", api.dognzb.cr", "detail_url": "http://api.dognzb.cr/details/510711cc9b7c11082d3e7146d2c4b5af", "type": "movie", "id": "510711cc9b7c11082d3e7146d2c4b5af", "size": 871}, "_id": "c59bf655c96a474b83647539aa477f1e", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "00026556", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "038bd4974bc31117ff0d45a13ace0cb7", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban Fury 2014 BRRip x264 720p-NPW", "url": "https://www.usenet-crawler.com/api?t=get&id=12004505f82aab19a4a4779019816143&apikey=<removed>", "age": 23, "name_extra": "", "seed_ratio": "", "content": "Cuban Fury 2014 BRRip x264 720p-NPW", "score": 36, "provider": "Newznab", "seed_time": "", "provider_extra": ", www.usenet-crawler.com", "detail_url": "https://www.usenet-crawler.com/details/12004505f82aab19a4a4779019816143", "type": "movie", "id": "12004505f82aab19a4a4779019816143", "size": 2488}, "_id": "1494b706defc46708d22b62a10e7453d", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "0002ba05", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "5bbb58d0b15514588334a3cc89eb2612", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.BDRip.x264-AMIABLE", "url": "https://www.usenet-crawler.com/api?t=get&id=66bb42042f63b1e29815c134696c8582&apikey=<removed>", "age": 28, "name_extra": "", "seed_ratio": "", "content": "Cuban.Fury.2014.BDRip.x264-AMIABLE", "score": 36, "provider": "Newznab", "seed_time": "", "provider_extra": ", www.usenet-crawler.com", "detail_url": "https://www.usenet-crawler.com/details/66bb42042f63b1e29815c134696c8582", "type": "movie", "id": "66bb42042f63b1e29815c134696c8582", "size": 828}, "_id": "2f043e362ed24fe7a094c324a1091d97", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "0002935d", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "a51f0d7e5eab890a8daed1dd680cb20a", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.BDRip.x264-AMIABLE", "url": "https://www.usenet-crawler.com/api?t=get&id=5ccbe3d3fd16a946cac79ba62336afab&apikey=<removed>", "age": 28, "name_extra": "", "seed_ratio": "", "content": "Cuban.Fury.2014.BDRip.x264-AMIABLE", "score": 36, "provider": "Newznab", "seed_time": "", "provider_extra": ", www.usenet-crawler.com", "detail_url": "https://www.usenet-crawler.com/details/5ccbe3d3fd16a946cac79ba62336afab", "type": "movie", "id": "5ccbe3d3fd16a946cac79ba62336afab", "size": 871}, "_id": "d39b104e9a9a411390881d7da073f6dc", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "00029204", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "222c01ca63d585c71a7b4dae8cbb92a6", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.1080p.Web-Dl.x264.Relentless", "url": "http://api.dognzb.cr/api?t=get&id=d433e5f086e662c60767914e53d4bfc3&apikey=<removed>", "age": 22, "name_extra": "", "seed_ratio": "", "content": "\n\t\t\t\t\t\t <div class=\"row-fluid\">\n\t\t\t\t\t\t\t <table cellpadding=0 cellspacing=0>\n\t\t\t\t\t\t\t\t <tr valign=\"top\">\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t <td width=110><img style=\"margin-left:10px; margin-bottom:10px; float:right;\" src=\"http://dognzb.cr/content/covers/movies/thumbs/2390237.png\" border=\"0\" /><\/td>\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t <b>Name:<\/b> Cuban.Fury.2014.1080p.Web-Dl.x264.Relentless<br /><b>Category:<\/b> Movies > HD<br /><b>Size:<\/b> 2.66 GB<br /><b>Post Date:<\/b> June 15, 2014 5:01 PM<br /><b>Group:<\/b> alt.binaries.xylo<br />\n\t\t\t\t\t\t\t\t\t\t <b>Year:<\/b> 2014<br /> <b>Rating:<\/b> 65<br /> <b>Genre:<\/b> Comedy<br /> \n\t\t\t\t\t\t\t\t\t <\/td>\n\t\t\t\t\t\t\t\t <\/tr>\n\t\t\t\t\t\t\t <\/table>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t\t ", "score": 35, "provider": "Newznab", "seed_time": "", "provider_extra": ", api.dognzb.cr", "detail_url": "http://api.dognzb.cr/details/d433e5f086e662c60767914e53d4bfc3", "type": "movie", "id": "d433e5f086e662c60767914e53d4bfc3", "size": 2719}, "_id": "0d2e098f77df407483436806e3b7f55a", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "0002337d", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "bf562c7c8b13640a6bdb7ba362429c02", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.BRRip.XviD-AQOS", "url": "http://api.dognzb.cr/api?t=get&id=5defcb3fbf74671ef37a299d79c3b6eb&apikey=<removed> "age": 26, "name_extra": "", "seed_ratio": "", "content": "\n\t\t\t\t\t\t <div class=\"row-fluid\">\n\t\t\t\t\t\t\t <table cellpadding=0 cellspacing=0>\n\t\t\t\t\t\t\t\t <tr valign=\"top\">\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t <td width=110><img style=\"margin-left:10px; margin-bottom:10px; float:right;\" src=\"http://dognzb.cr/content/covers/movies/thumbs/2390237.png\" border=\"0\" /><\/td>\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t <b>Name:<\/b> Cuban.Fury.2014.BRRip.XviD-AQOS<br /><b>Category:<\/b> Movies > SD<br /><b>Size:<\/b> 1.34 GB<br /><b>Post Date:<\/b> June 10, 2014 11:26 PM<br /><b>Group:<\/b> alt.binaries.warez.win95-apps<br />\n\t\t\t\t\t\t\t\t\t\t <b>Year:<\/b> 2014<br /> <b>Rating:<\/b> 65<br /> <b>Genre:<\/b> Comedy<br /> \n\t\t\t\t\t\t\t\t\t <\/td>\n\t\t\t\t\t\t\t\t <\/tr>\n\t\t\t\t\t\t\t <\/table>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t\t ", "score": 25, "provider": "Newznab", "seed_time": "", "provider_extra": ", api.dognzb.cr", "detail_url": "http://api.dognzb.cr/details/5defcb3fbf74671ef37a299d79c3b6eb", "type": "movie", "id": "5defcb3fbf74671ef37a299d79c3b6eb", "size": 1377}, "_id": "5cc17403058e434d9d696dcbc1394600", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "000222c7", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "8ed0083dc57708619f079a20ccefd87a", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.BRRip.XviD-AQOS", "url": "https://www.usenet-crawler.com/api?t=get&id=3d93a24f0c79a1bf266b7a4dfda9ac05&apikey=<removed>", "age": 26, "name_extra": "", "seed_ratio": "", "content": "Cuban.Fury.2014.BRRip.XviD-AQOS", "score": 25, "provider": "Newznab", "seed_time": "", "provider_extra": ", www.usenet-crawler.com", "detail_url": "https://www.usenet-crawler.com/details/3d93a24f0c79a1bf266b7a4dfda9ac05", "type": "movie", "id": "3d93a24f0c79a1bf266b7a4dfda9ac05", "size": 1376}, "_id": "a6aa66d0cca442ad90b636c4a71b28c7", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "0002f8b8", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "da51138bb7d637d9f019dbef9d4d0297", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.HDRip.x264.AC3.-.SiNDK8", "url": "https://www.usenet-crawler.com/api?t=get&id=af9f10b8e2ae4f3df00ab2fd1de9dd54&apikey=<removed>", "age": 26, "name_extra": "", "seed_ratio": "", "content": "Cuban.Fury.2014.HDRip.x264.AC3.-.SiNDK8", "score": 17, "provider": "Newznab", "seed_time": "", "provider_extra": ", www.usenet-crawler.com", "detail_url": "https://www.usenet-crawler.com/details/af9f10b8e2ae4f3df00ab2fd1de9dd54", "type": "movie", "id": "af9f10b8e2ae4f3df00ab2fd1de9dd54", "size": 1203}, "_id": "35ad5764f05146d8bc678e72aea46956", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "000246d7", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "48da7719724fdecd664f5f455a624187", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.HDRip.XViD-juggs[ETRG]", "url": "http://api.dognzb.cr/api?t=get&id=a55ce294f21abfa298ad8cae960963a1&apikey=<removed>", "age": 19, "name_extra": "", "seed_ratio": "", "content": "\n\t\t\t\t\t\t <div class=\"row-fluid\">\n\t\t\t\t\t\t\t <table cellpadding=0 cellspacing=0>\n\t\t\t\t\t\t\t\t <tr valign=\"top\">\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t <td width=110><img style=\"margin-left:10px; margin-bottom:10px; float:right;\" src=\"http://dognzb.cr/content/covers/movies/thumbs/2390237.png\" border=\"0\" /><\/td>\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t <b>Name:<\/b> Cuban.Fury.2014.HDRip.XViD-juggs[ETRG]<br /><b>Category:<\/b> Movies > SD<br /><b>Size:<\/b> 791 MB<br /><b>Post Date:<\/b> June 18, 2014 7:17 AM<br /><b>Group:<\/b> alt.binaries.boneless<br />\n\t\t\t\t\t\t\t\t\t\t <b>Year:<\/b> 2014<br /> <b>Rating:<\/b> 65<br /> <b>Genre:<\/b> Comedy<br /> \n\t\t\t\t\t\t\t\t\t <\/td>\n\t\t\t\t\t\t\t\t <\/tr>\n\t\t\t\t\t\t\t <\/table>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t\t ", "score": 14, "provider": "Newznab", "seed_time": "", "provider_extra": ", api.dognzb.cr", "detail_url": "http://api.dognzb.cr/details/a55ce294f21abfa298ad8cae960963a1", "type": "movie", "id": "a55ce294f21abfa298ad8cae960963a1", "size": 791}, "_id": "fe4047ecea4d4ce48d800c34c25d14a6", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "0002fcd3", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "3b3df4a716158b1d15cf6c6c7475c38a", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban.Fury.2014.HDRip.XViD-juggs", "url": "http://api.dognzb.cr/api?t=get&id=002245d23420968760796bcb27fab8d7&apikey=<removed>", "age": 19, "name_extra": "", "seed_ratio": "", "content": "\n\t\t\t\t\t\t <div class=\"row-fluid\">\n\t\t\t\t\t\t\t <table cellpadding=0 cellspacing=0>\n\t\t\t\t\t\t\t\t <tr valign=\"top\">\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t <td width=110><img style=\"margin-left:10px; margin-bottom:10px; float:right;\" src=\"http://dognzb.cr/content/covers/movies/thumbs/2390237.png\" border=\"0\" /><\/td>\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t <td>\n\t\t\t\t\t\t\t\t\t\t <b>Name:<\/b> Cuban.Fury.2014.HDRip.XViD-juggs<br /><b>Category:<\/b> Movies > SD<br /><b>Size:<\/b> 765 MB<br /><b>Post Date:<\/b> June 18, 2014 6:21 AM<br /><b>Group:<\/b> alt.binaries.boneless<br />\n\t\t\t\t\t\t\t\t\t\t <b>Year:<\/b> 2014<br /> <b>Rating:<\/b> 65<br /> <b>Genre:<\/b> Comedy<br /> \n\t\t\t\t\t\t\t\t\t <\/td>\n\t\t\t\t\t\t\t\t <\/tr>\n\t\t\t\t\t\t\t <\/table>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t\t ", "score": 14, "provider": "Newznab", "seed_time": "", "provider_extra": ", api.dognzb.cr", "detail_url": "http://api.dognzb.cr/details/002245d23420968760796bcb27fab8d7", "type": "movie", "id": "002245d23420968760796bcb27fab8d7", "size": 765}, "_id": "0fad3dbad9c1484fbb9621af8636047d", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "0002210e", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "4061c2ffaa5cfe756983ed84e1763eba", "quality": "brrip"}, {"status": "available", "info": {"protocol": "nzb", "description": "", "name": "Cuban Fury.2014.HDRip.XViD-juggs", "url": "https://www.usenet-crawler.com/api?t=get&id=8ca5adf8aff1358345069aff00e733dc&apikey=<removed>", "age": 19, "name_extra": "", "seed_ratio": "", "content": "Cuban Fury.2014.HDRip.XViD-juggs", "score": 14, "provider": "Newznab", "seed_time": "", "provider_extra": ", www.usenet-crawler.com", "detail_url": "https://www.usenet-crawler.com/details/8ca5adf8aff1358345069aff00e733dc", "type": "movie", "id": "8ca5adf8aff1358345069aff00e733dc", "size": 791}, "_id": "7dc8e9b846894d5295ceb80c27605005", "media_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "_rev": "000221ea", "_t": "release", "is_3d": 0, "last_edit": 1404790570, "identifier": "c0f1041539e341510b47d1f91a421e40", "quality": "brrip"}], "title": "Cuban Fury", "_rev": "0006bdfb", "profile_id": "1535b3b32ea145bdae6b2cb51f741093", "files": {"image_poster": ["/share/HDA_DATA/.qpkg/CouchPotato2/config/cache/7dda2e5dc00675439f76727c52fb223c.jpg"]}, "_id": "d7fb8fe5375742d4b3ff536a82e0d98a", "category_id": null, "type": "movie", "tags": ["recent"], "identifiers": {"imdb": "tt2390237"}}, "success": true}
This is weird... it doesn't give an error when connecting, but it fails to load the returned data as json...
what you have just shown is json.
Can you please double-check the apikey that is shown in the logs with the apikey in CouchPotato, settings, general?
Checked the api key again in nzbget, couchpotato and the autoprocessmedia.cfg, the one in autoprocessmedia was missing the last digit :/, sorry about that, i copied/pasted it so many times over and over, must have messed it up somewhere every time i checked. It did finish the nzbtocouchpotato script as far as i can tell, now im back to an old issue i was having before this one popped up.
Whenever couchpotato actually tried to download files, it would snatch, download, then they would never show up. Somewhere along the line between nzbtomedia and couchpotato, it seems to have processed the file to... nowhere, the movie that was in the directory was deleted and doesn't seem to have gone anywhere on the drive. Nothing at all about it in the couchpotato logs, it doesn't seem to have noticed. I pasted the logs from where it was getting stuck beforehand.
[00:32:36] [DEBUG]::COUCHPOTATO: Opening URL: http://localhost:5050/api/<removed>/renamer.scan with PARAMS: {'download_id': '413fc689c91b2e94b6446f77de137d28', 'media_folder': '/share/HDB_DATA/Pub_2/Download/_complete/movies/<removed>.2014.720p.BRRip.H264.AAC-MAJESTiC', 'downloader': 'nzbget'}
[00:32:36] [POSTPROCESS]::COUCHPOTATO: Starting renamer scan for <removed>.2014.720p.BRRip.H264.AAC-MAJESTiC
[00:32:37] [POSTPROCESS]::COUCHPOTATO: SUCCESS: Finished renamer scan for folder /share/HDB_DATA/Pub_2/Download/_complete/movies/<removed>.2014.720p.BRRip.H264.AAC-MAJESTiC
[00:32:37] [DB]::DB: Updating status of our download <removed>.2014.720p.BRRip.H264.AAC-MAJESTiC in the DB to 1
[00:32:37] [DB]::MAIN: nzbtomedia.db: UPDATE downloads SET status=?, last_update=? WHERE input_name=? with args [1, 735423, u'<removed>.2014.720p.BRRip.H264.AAC-MAJESTiC']
[00:32:39] [INFO]::CLEANDIRS: Directory /share/HDB_DATA/Pub_2/Download/_complete/movies/<removed>.2014.720p.BRRip.H264.AAC-MAJESTiC still contains 1 unprocessed file(s), skipping ...
[00:32:39] [INFO]::CLEANDIRS: Directory /share/HDB_DATA/Pub_2/Download/_complete/movies/<removed>.2014.720p.BRRip.H264.AAC-MAJESTiC has been processed, removing ...
[00:32:40] [INFO]::MAIN: Searching /share/HDB_DATA/Pub_2/Download/_complete/movies for mediafiles to post-process ...
[00:32:40] [DEBUG]::MAIN: Checking for empty folders in:/share/HDB_DATA/Pub_2/Download/_complete/movies
[00:32:40] [DEBUG]::MAIN: No directories identified in CouchPotato:movies for post-processing
[00:32:40] [INFO]::MAIN: The /opt/share/nzbget/ppscripts/nzbToMedia/nzbToCouchPotato.py script completed successfully.
I imagine at this point, ive probably just missed a setting somewhere, but im lost as to where to look.
Can you post the full logs please?
This shouldn't be delting the folder when media files are still present... i fixed this in dev, so it appears you are still on an older version? I have just pushed dev to master, so please update...
Can you show the contents of the Couchpotato log between 00:32 and 00:33?
Please enable debug logging in CouchPotato (settings, general, debug) and then restart CouchPotato... This will give more details in CouchPotato logs with the next run.
Sorry, i can't seem to find a way to check the version of nzbtomedia, it is very probable i did not follow the proper steps to switch to the dev branch, doing all this on my qnap leaves me a bit confused sometimes. There was actually absolutely nothing around 00:32 in couchpotato, nowhere near it, a big long gap actually, i don't use couchpotato for a lot.
07-08 20:32:16 INFO [0m[potato.core._base.updater] === VERSION git:(RuudBurger:CouchPotatoServer master) 45b2dff6 (2014-06-29 05:01:09), using GitUpdater ===[0m
07-08 20:32:16 INFO [0m[hpotato.core.plugins.base] Opening url: get https://api.couchpota.to/messages/?last_check=1384713000, data: [][0m
07-09 00:39:04 INFO [0m[tato.core._base.scheduler] Scheduling renamer.check_snatched, interval: hours = 0, minutes = 1, seconds = 0[0m
07-09 00:39:04 INFO [0m[tato.core._base.scheduler] Scheduling renamer.check_snatched_forced, interval: hours = 2, minutes = 0, seconds = 0[0m
I turned on debug, restarted couchpotato, and put another file in to try to process, it did not delete it, but it also did not import it, i think this was a naming issue, after renaming the folder to its imdb id, it seems to have done it! Apparently this was fixed in your dev version, and i just have no idea how to switch between them :/, mission successful, thank you so much for the help, and thanks for all the work you've put in to these scripts!
This should now work with master anyway...
So please just log in via ssh and
cd /share/Download/nzbToMedia
git reset --hard
git pull
to switch to dev
cd /share/Download/nzbToMedia
git reset --hard
git pull
git checkout dev
git pull
to switch back to master
cd /share/Download/nzbToMedia
git reset --hard
git pull
git checkout master
git pull
Also, looking at your logs above, i suggest you do the following
CouchPotato, settings, renamer
run_every = 0
force_every = 48
Basically, as it is, the Couchpotato renamer might be finding these first and interfering...
Ah, thanks again! couchpotato settings changed, i'm not sure which of those parts i missed when trying to update to dev version, but i definitely did not do all of those, but at least now i know where to look if i need to switch to dev in the future :D.
I posted this on the couchpotato forums at https://couchpota.to/forum/viewtopic.php?f=5&t=4130&p=19434#p19434 before i found this area here, i'm having an issue where i cannot import any movies from nzbtoget to couchpotato using nzbtocouchpotato. I've turned on debug in the autoprocess config file, and i should in theory be on the dev version (if i changed it properly), but i have no idea how to check.
It just stops on the very last line there, and never seems to move past it. I removed any hashes that i thought might be insecure, and replaced the movie name with.
[code]2014-07-08 00:28:14 INFO ::MAIN: ######################################################### 2014-07-08 00:28:14 INFO ::MAIN: ## ..::[nzbToMedia.pyc]::.. ## 2014-07-08 00:28:14 INFO ::MAIN: ######################################################### 2014-07-08 00:28:14 DEBUG ::MAIN: Options passed into nzbToMedia: ['/opt/share/nzbget/ppscripts/nzbToMedia/nzbToCouchPotato.py'] 2014-07-08 00:28:14 INFO ::MAIN: Script triggered from NZBGet Version 12.0. 2014-07-08 00:28:14 DEBUG ::MAIN: Adding NZB download info for directory /share/HDB_DATA/Pub_2/Download/_complete/movies/.2004.INTERNAL.BDRip.x264-ARCHiViST to database
2014-07-08 00:28:14 DB ::MAIN: nzbtomedia.db: UPDATE downloads SET status = ?, client_agent = ?, last_update = ?, input_id = ?, input_hash = ?, input_name = ? WHERE input_directory = ? with args [0, u'nzbget', 735422, u'', u'', u'.2004.INTERNAL.BDRip.x264-ARCHiViST', u'/share/HDB_DATA/Pub_2/Download/_complete/movies/.2004.INTERNAL.BDRip.x264-ARCHiViST']
2014-07-08 00:28:15 INFO ::MAIN: Auto-detected SECTION:CouchPotato
2014-07-08 00:28:15 INFO ::MAIN: Calling CouchPotato:movies to post-process:.2004.INTERNAL.BDRip.x264-ARCHiViST
2014-07-08 00:28:15 INFO ::MAIN: Attemping imdbID lookup for .2004.INTERNAL.BDRip.x264-ARCHiViST
2014-07-08 00:28:15 INFO ::MAIN: Searching folder and file names for imdbID ...
2014-07-08 00:28:15 INFO ::MAIN: Searching IMDB for imdbID ...
2014-07-08 00:28:18 DEBUG ::MAIN: Opening URL: http://www.omdbapi.com
2014-07-08 00:28:18 INFO ::MAIN: Found imdbID [tt0362227]
2014-07-08 00:28:18 DEBUG ::MAIN: Opening URL: http://localhost:5050/api//media.get[/code]