abbi031892 / periscope

Automatically exported from code.google.com/p/periscope
0 stars 0 forks source link

TheSubDB subtitle download fails #130

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. TheSubDB plugin activated
2. scan for "the.walking.dead.s02e11.720p.hdtv.x264-compulsion.mkv"

Line 58 :
        params = {'action' : 'download', 'hash' : filehash}
Bad, should be
        params = {'action' : 'search', 'hash' : filehash}
Otherwise, the subtitles file content is returned as search result, and after 
that plugin can't download anything.

Line 74 :
                    result['link'] = "%s?action=%s&hash=%s&language=%s" % (self.host, "download", filehash, lang)
Bad, should be
                    result['link'] = self.base_url.format(urllib.urlencode({'action' : 'download', 'hash' : filehash, 'lang' : lang}))

Original issue reported on code.google.com by bobby.dj...@gmail.com on 6 Mar 2012 at 12:47

GoogleCodeExporter commented 8 years ago

Original comment by patrick....@gmail.com on 6 Mar 2012 at 8:47

GoogleCodeExporter commented 8 years ago
Also, does not save the content, dumps it to the screen as list.

Original comment by marko.ko...@gmail.com on 16 Apr 2012 at 4:30