acomputerguru / periscope

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

subtitulos.es plugin throwing an error if not completed subtitles exists #127

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. have subtitulos.es plugin activated
2. scan for file "DESPERATE HOUSEWIVES/Desperate Housewives S08E14 720p WEB-DL 
DD5.1 H.264-NFHD.mkv" which subtitles hosted on subtitulos.es are not all 
completed

The HTML parsing bugs because the plugin is looking for "li-estado green". If 
the sub is not complete, the class is "li-estado red", thus statusLI is None, 
and the next line statusLI.contents[0] throw an exception.

I modified the subtitulos.py this way to make it work :

After line 85 :
                statusLI = lang_html.findNext("li",{"class":"li-estado green"} )

Add line 86 :
                 if statusLI != None:
And indent (4 spaces) lines 87 to 95

Original issue reported on code.google.com by bobby.dj...@gmail.com on 5 Mar 2012 at 11:04

GoogleCodeExporter commented 9 years ago

Original comment by patrick....@gmail.com on 5 Mar 2012 at 11:53