abbi031892 / periscope

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

Podnapisi sub download fails #129

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Podnapisi plugin activated
2. scan for "Greys.Anatomy.S08E16.720p.WEB-DL.DD5.1.H.264-KiNGS.mkv" with 
english and french languages

There is only on subtitle corresponding, french one.

2 errors in the plugin :

Line 113 :
        content = self.downloadContent(searchurl, timeout = 10)
searchurl is wrong, you need to replace the line by :
        content = self.downloadContent(subpage, timeout = 10)

Line 121 :
        dlimg = soup.find("img", {"title" : "Download"})
When the page is about a french sub, the title is not Download bu Telecharger. 
Best is to replace the line by the following to be sure it will work in any 
language :
        dlimg = soup.find("img", {"src" : "/images/simple/downloadS.gif"})

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

GoogleCodeExporter commented 8 years ago

Original comment by patrick....@gmail.com on 18 Nov 2012 at 3:45