Exception while searching for subtitles

Bug #723444 reported by Alexandre González on 2011-02-22
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SubDownloader
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/share/subdownloader/gui/main.py", line 925, in onFolderTreeClicked
    self.SearchVideos(folder_path)
  File "/usr/share/subdownloader/gui/main.py", line 807, in SearchVideos
    videoSearchResults = self.OSDBServer.SearchSubtitles("",videos_piece)
  File "/usr/share/subdownloader/modules/SDService.py", line 343, in SearchSubtitles
    return SearchSubtitles (language, videos, imdb_ids)
  File "/usr/share/subdownloader/modules/SDService.py", line 52, in __call__
    result = self.function(*args)
  File "/usr/share/subdownloader/modules/SDService.py", line 383, in _SearchSubtitles
    if result['data'] != False:
KeyError: 'data'

I've solved added at line 383 this quick hack:
try: result['data']
except: return []

Marco Rodrigues (gothicx) wrote :

How do you reproduce this error?

Alexandre González (xota) wrote :

Hi Marco,

I can reproduce this error when I search subtitles to this:

alex@big:/data/videos$ pwd
/data/videos
alex@big:/data/videos$ ls -w1 Doctor\ Who\ 2005\ -\ Season\ 1/
Doctor Who 2005 - 1x01 - Rose (ws_pdtv_xvid-fov).avi
Doctor Who 2005 - 1x01 - Rose (ws_pdtv_xvid-fov).srt
Doctor Who 2005 - 1x02 - The End Of The World (ws_pdtv_xvid-fov.[BT]).avi
Doctor Who 2005 - 1x02 - The End Of The World (ws_pdtv_xvid-fov.[BT]).srt
Doctor Who 2005 - 1x03 - The Unquiet Dead (ws_pdtv_xvid-fov.[BT]).avi
Doctor Who 2005 - 1x03 - The Unquiet Dead (ws_pdtv_xvid-fov.[BT]).srt
Doctor Who 2005 - 1x04 - Aliens Of London (part 1) (ws_pdtv_xvid-fov.[BT]).avi
Doctor Who 2005 - 1x04 - Aliens Of London (part 1) (ws_pdtv_xvid-fov.[BT]).srt
Doctor Who 2005 - 1x05 - World War Three (part 2) (ws_pdtv_xvid-fov.[BT]).avi
Doctor Who 2005 - 1x05 - World War Three (part 2) (ws_pdtv_xvid-fov.[BT]).srt
Doctor Who 2005 - 1x06 - Dalek (ws_pdtv_xvid-fov.[BT]).avi
Doctor Who 2005 - 1x06 - Dalek (ws_pdtv_xvid-fov.[BT]).srt
Doctor Who 2005 - 1x07 - The Long Game (ws_pdtv_xvid-fov.[BT]).avi
Doctor Who 2005 - 1x07 - The Long Game (ws_pdtv_xvid-fov.[BT]).srt
Doctor Who 2005 - 1x08 - Father's Day (pdtv.[TOKO]).avi
Doctor Who 2005 - 1x08 - Father's Day (pdtv.[TOKO]).srt
Doctor Who 2005 - 1x09 - The Empty Child (part 1) (ws.pdtv.xvid-gothic.[VTV]).avi
Doctor Who 2005 - 1x09 - The Empty Child (part 1) (ws.pdtv.xvid-gothic.[VTV]).srt
Doctor Who 2005 - 1x10 - The Doctor Dances (part 2) (ws_pdtv_xvid-fov.[VTV]).avi
Doctor Who 2005 - 1x10 - The Doctor Dances (part 2) (ws_pdtv_xvid-fov.[VTV]).srt
Doctor Who 2005 - 1x11 - Boom Town (ws_pdtv_xvid.[MM]).avi
Doctor Who 2005 - 1x11 - Boom Town (ws_pdtv_xvid.[MM]).srt
Doctor Who 2005 - 1x12 - Bad Wolf (Part 1) (ws_pdtv_xvid.[MM]).avi
Doctor Who 2005 - 1x12 - Bad Wolf (Part 1) (ws_pdtv_xvid.[MM]).srt
Doctor Who 2005 - 1x13 - The Parting Of The Ways (Part 2) (WS_PDTV_XviD-FoV).avi
Doctor Who 2005 - 1x13 - The Parting Of The Ways (Part 2) (WS_PDTV_XviD-FoV).srt
Info.txt

Alessandro Losavio (alo21) wrote :

Could you try to reproduce the bug againg, and tell if it still persist?

Thanks!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers