You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/home/kodi/.kodi/addons/service.subtitles.napisy24pl/service.py", line 152, in <module>
search(item)
File "/home/kodi/.kodi/addons/service.subtitles.napisy24pl/service.py", line 33, in search
subtitles_list = helper.get_subtitle_list(item)
File "/home/kodi/.kodi/addons/service.subtitles.napisy24pl/resources/lib/NapisyUtils.py", line 106, in get_subtitle_list
search_results = self._search_movie(item)
File "/home/kodi/.kodi/addons/service.subtitles.napisy24pl/resources/lib/NapisyUtils.py", line 208, in _search_movie
video_file_size = column2[4]
IndexError: list index out of range
-->End of Python script error report<--
This is probably caused because the BS returns <br/> (the xhtml style closing tag) istead of the <br> as originally returned from server in line: column2 = "".join([str(x) for x in column2.contents])
Possible solution would be: 205: column2 = [x.strip() for x in filter(None, column2.split("<br/>"))]
or configure BS to force single tags closing style (fix the content to either <br> or <br/>)
The text was updated successfully, but these errors were encountered:
When searching for any movie subtitles I get:
This is probably caused because the BS returns
<br/>
(the xhtml style closing tag) istead of the<br>
as originally returned from server in line:column2 = "".join([str(x) for x in column2.contents])
Possible solution would be:
205: column2 = [x.strip() for x in filter(None, column2.split("<br/>"))]
or configure BS to force single tags closing style (fix the content to either
<br>
or<br/>
)The text was updated successfully, but these errors were encountered: