Closed GoogleCodeExporter closed 8 years ago
Delete Bierdopje.pyc (watch out for the c at the end, it's the compiled version
of Bierdopje)
Retry (the .pyc will be regenerated)
Original comment by patrick....@gmail.com
on 20 May 2011 at 5:13
Thanks! I just removed BierDopje.pyc and recompiled periscope, unfortunately
the error is still the same.
Original comment by pvenp...@gmail.com
on 20 May 2011 at 11:28
Can you test with the latest revision ?
Original comment by patrick....@gmail.com
on 24 May 2011 at 9:45
Thanks again! I just downloaded revision 148, unfortunately the error is still
there (I also deleted BierDopje.pyc.)
> periscope -l nl -l en *.mkv
INFO:root:Searching subtitles for The.Event.S01E22.720p.HDTV.X264-DIMENSION.mkv
with langs ['nl', 'en']
INFO:root:Searching on OpenSubtitles
INFO:root:Searching on Addic7ed
INFO:root:Searching on BierDopje
ERROR:root:Error raised by plugin BierDopje: list index out of range
INFO:root:OpenSubtitles writing 4 items to queue
INFO:root:Trying to download subtitle:
http://www.opensubtitles.org/en/download/file/1952864819.gz
INFO:root:Downloading
http://www.opensubtitles.org/en/download/file/1952864819.gz
WARNING:root:**************************************************
WARNING:root:Downloaded 1 subtitles
WARNING:root:en - The.Event.S01E22.720p.HDTV.X264-DIMENSION.srt
WARNING:root:**************************************************
Original comment by pvenp...@gmail.com
on 26 May 2011 at 6:10
I just tried it (without any changes) and now it works. Strange, but I am
happy. :)
Original comment by pvenp...@gmail.com
on 2 Jun 2011 at 7:30
I just tried to download all subs for Game of Thrones, unfortunately the 'list
index out of range'-error is back.
Original comment by pvenp...@gmail.com
on 14 Jun 2011 at 6:53
Could you run it with --debug flag and give me the exact filename so that I can
try to simulate the query on my machine ?
Original comment by patr...@sourcefully.com
on 14 Jun 2011 at 8:28
Hereby the requested information:
> periscope -l nl game.of.thrones.s01e01.720p.hdtv.x264-ctu.mkv --debug
INFO:root:Searching subtitles for game.of.thrones.s01e01.720p.hdtv.x264-ctu.mkv
with langs ['nl']
INFO:root:Searching on OpenSubtitles
INFO:root:Searching on Addic7ed
DEBUG:root:dl'ing
http://www.addic7ed.com/serie/game_of_thrones/1/1/game_of_thrones
INFO:root:Searching on BierDopje
DEBUG:root:possible langs : ['nl']
DEBUG:root:Looking for show Id @
http://api.bierdopje.com/23459DC262C0A742/GetShowByName/game%20of%20thrones
ERROR:root:Error raised by plugin BierDopje: list index out of range
DEBUG:root:{'status': '200 OK', 'seconds': 0.0040000000000000001, 'token':
'1ndl6aht7lrf7j21ikeu5r3ug1'}
DEBUG:root:query: token='1ndl6aht7lrf7j21ikeu5r3ug1', search='{'moviebytesize':
'1563733824', 'sublanguageid': 'dut', 'moviehash': 'b952af9aa809d3e6'}'
DEBUG:root:Result: {'status': '200 OK', 'seconds': 0.0050000000000000001,
'data': [{'ISO639': 'nl', 'SubComments': '0', 'UserID': '0', 'SubFileName':
'Game.of.Thrones.S01E01.720p.HDTV.x264-CTU.srt', 'SubAddDate': '2011-06-07
20:51:02', 'SubBad': '0', 'SubLanguageID': 'dut', 'MovieImdbRating': '9.5',
'SubHash': '2cc19c84968809402ed86eef0772afba', 'MovieReleaseName': 'Game of
Thrones S01E01 720p HDTV x264 CTU', 'SubtitlesLink':
'http://www.opensubtitles.org/en/subtitles/4189626/game-of-thrones-nl',
'IDMovie': '63130', 'SubDownloadsCnt': '114', 'MovieByteSize': '1563733824',
'IDSubMovieFile': '2980903', 'SubSize': '37126', 'IDSubtitle': '4189626',
'IDSubtitleFile': '1952872402', 'SubHearingImpaired': '0', 'SubSumCD': '1',
'SubAuthorComment': '', 'MovieNameEng': '', 'MatchedBy': 'moviehash',
'SubRating': '0.0', 'SubDownloadLink':
'http://www.opensubtitles.org/en/download/file/1952872402.gz',
'ZipDownloadLink': 'http://www.opensubtitles.org/en/download/sub/4189626',
'SubFeatured': '0', 'MovieTimeMS': '0', 'SubActualCD': '1', 'UserNickName': '',
'SubFormat': 'srt', 'MovieHash': 'b952af9aa809d3e6', 'LanguageName': 'Dutch',
'UserRank': '', 'MovieName': 'Game of Thrones', 'IDMovieImdb': '944947',
'MovieYear': '2011'}]}
DEBUG:root:[{'ISO639': 'nl', 'SubComments': '0', 'UserID': '0', 'SubFileName':
'Game.of.Thrones.S01E01.720p.HDTV.x264-CTU.srt', 'SubAddDate': '2011-06-07
20:51:02', 'SubBad': '0', 'SubLanguageID': 'dut', 'MovieImdbRating': '9.5',
'SubHash': '2cc19c84968809402ed86eef0772afba', 'MovieReleaseName': 'Game of
Thrones S01E01 720p HDTV x264 CTU', 'SubtitlesLink':
'http://www.opensubtitles.org/en/subtitles/4189626/game-of-thrones-nl',
'IDMovie': '63130', 'SubDownloadsCnt': '114', 'MovieByteSize': '1563733824',
'IDSubMovieFile': '2980903', 'SubSize': '37126', 'IDSubtitle': '4189626',
'IDSubtitleFile': '1952872402', 'SubHearingImpaired': '0', 'SubSumCD': '1',
'SubAuthorComment': '', 'MovieNameEng': '', 'MatchedBy': 'moviehash',
'SubRating': '0.0', 'SubDownloadLink':
'http://www.opensubtitles.org/en/download/file/1952872402.gz',
'ZipDownloadLink': 'http://www.opensubtitles.org/en/download/sub/4189626',
'SubFeatured': '0', 'MovieTimeMS': '0', 'SubActualCD': '1', 'UserNickName': '',
'SubFormat': 'srt', 'MovieHash': 'b952af9aa809d3e6', 'LanguageName': 'Dutch',
'UserRank': '', 'MovieName': 'Game of Thrones', 'IDMovieImdb': '944947',
'MovieYear': '2011'}]
INFO:root:OpenSubtitles writing 1 items to queue
DEBUG:root:All subtitles:
DEBUG:root:[{'lang': 'nl', 'plugin':
<periscope.plugins.OpenSubtitles.OpenSubtitles object at 0x4094bf30>,
'filename': 'game.of.thrones.s01e01.720p.hdtv.x264-ctu.mkv', 'link':
'http://www.opensubtitles.org/en/download/file/1952872402.gz', 'release':
'Game.of.Thrones.S01E01.720p.HDTV.x264-CTU.srt', 'page':
'http://www.opensubtitles.org/en/download/file/1952872402.gz'}]
INFO:root:Trying to download subtitle:
http://www.opensubtitles.org/en/download/file/1952872402.gz
INFO:root:Downloading
http://www.opensubtitles.org/en/download/file/1952872402.gz
DEBUG:root:Download finished to file
game.of.thrones.s01e01.720p.hdtv.x264-ctu.srt.gz. Size : 14660
WARNING:root:**************************************************
WARNING:root:Downloaded 1 subtitles
WARNING:root:nl - game.of.thrones.s01e01.720p.hdtv.x264-ctu.srt
WARNING:root:**************************************************
Original comment by pvenp...@gmail.com
on 15 Jun 2011 at 6:40
[deleted comment]
You're right. The API key has been disabled again ...
I'll need to add more cache probably and have a talk about the BierDopje admins
to see if we can find a solution for that.
Original comment by patrick....@gmail.com
on 16 Jun 2011 at 7:56
[deleted comment]
Maybe the answer would be to require everyone to request their own API key.
I'll try to contact the BierDopje admins and see if that would work for them.
Original comment by patrick....@gmail.com
on 16 Jun 2011 at 9:56
[deleted comment]
Ok, I will add my own key. Thanks!
Is it possible to change the error to something that tells me the key is
invalid?
Original comment by estherja...@gmail.com
on 16 Jun 2011 at 6:13
I still get the same error. I created a key on bierdopje, I copied this key to
BierDopje.py, I remove BierDopje,pyc and did a recompile. Unfortunately the old
key is still used.
What am I doing wrong?
Original comment by pvenp...@gmail.com
on 16 Jun 2011 at 8:09
@esther, I will update some code to handle the error message and show the
message to the user.
@pven, could you do the following:
1) check your periscope version to see if you have 0.2.4 :
# periscope --version
2) run periscope with --debug and check that the URL in the debug contains your
key. Look for "DEBUG:root:Looking for show Id @ <some url>". If it does, click
on that link or copy-paste it in a browser and look for the error message that
is returned. It will give you more insight on what goes wrong.
Original comment by patrick....@gmail.com
on 16 Jun 2011 at 11:44
The esther-reply is also from me, I forgot my wife used my computer to read her
gmail. :)
Later on today I'll look at the debug-info.
Original comment by pvenp...@gmail.com
on 17 Jun 2011 at 6:32
1) Version is 'dev'. How can I get the '0.2.4'-version?
2) Using --debug shows
http://api.bierdopje.com/23459DC262C0A742/GetShowByName/game%20of%20thrones,
this is the wrong key. The error is 'This developer key has been disabled'.
Original comment by pvenp...@gmail.com
on 17 Jun 2011 at 7:18
If you use SVN, you may be using an old periscope version. Update your SVN and
check that you have the revision 149.
If you have installed periscope as a module at some point on your machine, you
could be running that instead of the latest from SVN (as the key you use is not
the latest from SVN). This would also explain why your local changes are not
taken into account.
Original comment by patrick....@gmail.com
on 17 Jun 2011 at 8:54
I am going to check it. Thanks again!
Looks like this one can be closed?
Original comment by pvenp...@gmail.com
on 17 Jun 2011 at 5:24
Just one enhancement request: is it possibble to make it more easy to set
another key? Ie. on the commandline or in some config-file that can be changed
after periscope is installed.
I am currently using an eTrayz, it is quite hard to get it working with another
key.
Original comment by pvenp...@gmail.com
on 17 Jun 2011 at 8:54
Original comment by patrick....@gmail.com
on 24 Feb 2013 at 12:12
Original issue reported on code.google.com by
pvenp...@gmail.com
on 19 May 2011 at 8:18