Skip to content

Instantly share code, notes, and snippets.

@mikedm139
mikedm139 / gist:6963316
Created October 13, 2013 15:04
CP Downloader error
ERROR [tato.core.plugins.renamer] Failed checking for release in downloader: Traceback (most recent call last):
File "/usr/local/couchpotato_v2/couchpotato/core/plugins/renamer/main.py", line 685, in checkSnatched
nzbname = self.createNzbName(rel_dict['info'], movie_dict)
File "/usr/local/couchpotato_v2/couchpotato/core/plugins/base.py", line 294, in createNzbName
return '%s%s' % (toSafeString(data.get('name')[:127 - len(tag)]), tag)
TypeError: 'int' object is unsubscriptable
@mikedm139
mikedm139 / gist:6963232
Created October 13, 2013 14:57
Flixtser JSON
[iders.automation.flixster] \n\r\n\n[{"id":"XXXXXXXXX_771193517","user":{"id":XXXXXXXXX,"firstName":"XXXX","lastName":"XXXXX","thumbnailUrl":"https://lh3.googleusercontent.com/XXXXXXXXXXXX/XXXXXXXXXXX/XXXXXXXXXXX/XXXXXXXXXXX/photo.jpg?sz=50&sz=80"},"movie":{"id":771193517,"title":"The Wolverine","year":2013,"synopsis":"Hugh Jackman returns as Wolverine in this sequel to the member of the X-Men\'s first solo outing. Mark Bomback and The Usual...","url":"http://www.flixster.com/movie/the-wolverine-2012/","vanity":"the-wolverine-2012","movietype":"InTheaters","poster":{"thumbnail":"http://content6.flixster.com/movie/11/17/25/11172568_tmb.jpg","mobile":"http://content6.flixster.com/movie/11/17/25/11172568_mob.jpg","profile":"http://content6.flixster.com/movie/11/17/25/11172568_pro.jpg","detailed":"http://content6.flixster.com/movie/11/17/25/11172568_det.jpg","320X480":"http://content6.flixster.com/movie/11/17/25/11172568_320.jpg"},"tomatometer":69,"audienceScore":73,"mpaa":"PG-13","runningTime":"2 hr. 16 min.","d
@mikedm139
mikedm139 / gist:6963058
Created October 13, 2013 14:40
More json parsing error
ERROR [ato.core.helpers.encoding] Unable to decode value "'\n\r\n\n[{"id":"789..." : Traceback (most recent call last):
File "/usr/local/couchpotato_v2/couchpotato/core/helpers/encoding.py", line 32, in toUnicode
return ek(original, *args)
File "/usr/local/couchpotato_v2/couchpotato/core/helpers/encoding.py", line 54, in ek
return original.decode(Env.get('encoding'))
File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xed in position 36015: invalid continuation byte
@mikedm139
mikedm139 / Error log
Created October 13, 2013 14:25
CouchPotato error parsing flixster json
ERROR [ couchpotato.core.event] Error in event "automation.get_movies", that wasn't caught: Traceback (most recent call last):
File "/usr/local/couchpotato_v2/couchpotato/core/event.py", line 12, in runHandler
return handler(*args, **kwargs)
File "/usr/local/couchpotato_v2/couchpotato/core/providers/automation/base.py", line 33, in _getMovies
return self.getIMDBids()
File "/usr/local/couchpotato_v2/couchpotato/core/providers/automation/flixster/main.py", line 24, in getIMDBids
for movie in self.getWatchlist():
File "/usr/local/couchpotato_v2/couchpotato/core/providers/automation/flixster/main.py", line 43, in getWatchlist
data = json.loads(self.getHTMLData(self.url % user_id))
File "/usr/lib/python2.6/json/__init__.py", line 307, in loads