search - KeyError: 'MovieName'

Bug #700407 reported by Jan Klepek
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
SubDownloader
Status tracked in Trunk
Trunk
Fix Committed
Undecided
Alessandro Losavio

Bug Description

OS: Ubuntu 12.04 (amd64), Fedora
Version 2.0.10, however issue still persist in 2.0.14

search.py:19:__init__:KeyError: 'MovieName'

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/subdownloader/gui/main.py", line 1522,
in onButtonSearchByTitle
    movies = s.search_movie(search_text,'all')
  File "/usr/lib/python2.6/site-packages/subdownloader/modules/search.py", line
55, in search_movie
    search = self.parse_results(xml_page.read())
  File "/usr/lib/python2.6/site-packages/subdownloader/modules/search.py", line
288, in parse_results
    temp_movie = Movie(sub)
  File "/usr/lib/python2.6/site-packages/subdownloader/modules/search.py", line
19, in __init__
    self.MovieName = movieInfo['MovieName']
KeyError: 'MovieName'

Local variables in innermost frame:
movieInfo: {'TotalSubs': u'1', 'MovieID': {'LinkImdb':
u'/redirect/http://www.imdb.com/title/tt1186300/', 'Link':
u'/en/search/sublanguageid-all/xml/idmovie-49550', 'MovieID': u'49550'},
'MovieThumb': u'http://static.opensubtitles.org/gfx/empty_cover.jpg',
'MovieImdbID': u'1186300', 'IDSubtitle': {'LinkImdb': '', 'IDSubtitle':
u'3546680', 'Link': '', 'DownloadLink': '', 'uuid': ''}, 'MovieImdbRating':
u'0.0', 'LinkUseNext':
u'http://www.opensubtitles.org/addons/servead.php?weblang=en&file=',
'MovieYear': u'0', 'Newest': u'13/08/2009', 'LinkZoozle':
u'http://www.zoozle.org/search/_rapidshare.html', 'LinkBoardreader':
u'http://boardreader.com/s/.html?aaid=2712'}

Changed in subdownloader:
status: New → Confirmed
description: updated
Revision history for this message
Alessandro Losavio (alo21) wrote :

Here is the same results while I am trying to search 'The Godfather: ':

Traceback (most recent call last):
  File "/usr/share/subdownloader/gui/main.py", line 1518, in onButtonSearchByTitle
    movies = s.search_movie(search_text,'all')
  File "/usr/share/subdownloader/modules/search.py", line 55, in search_movie
    search = self.parse_results(xml_page.read())
  File "/usr/share/subdownloader/modules/search.py", line 288, in parse_results
    temp_movie = Movie(sub)
  File "/usr/share/subdownloader/modules/search.py", line 23, in __init__
    self.IMDBRating = str(movieInfo['MovieImdbRating'])
KeyError: 'MovieImdbRating'

Revision history for this message
Alessandro Losavio (alo21) wrote :

I thought is a good idea to open a new bug about KeyError: 'MovieImdbRating'. So the bug it is bug 1041311

Revision history for this message
Alessandro Losavio (alo21) wrote :

Could you tell us just how to reproduce the bug? Which word did you search?

Thanks

Changed in subdownloader:
status: Confirmed → Incomplete
Revision history for this message
Jan Klepek (jan-klepek-gmail) wrote :

Hi,

Well, when I try to search for 'godfather' or 'hell' , I receive same error as described in first submission.

Revision history for this message
Jan Klepek (jan-klepek-gmail) wrote :

when I try latest version from TRUNK, it works as expected.
So I think that this issue is resolved

btw, when do you expect to release 2.0.16 with this bugfix?

Changed in subdownloader:
milestone: none → 2.0.15-1ubuntu1
status: Incomplete → In Progress
assignee: nobody → Alessandro Losavio (alo21)
Revision history for this message
Alessandro Losavio (alo21) wrote :

If you have imported 'developer-subdownloader' PPA (https://launchpad.net/~subdownloader-developers/+archive/ppa/), you should receive an upgrade today.

Revision history for this message
Jan Klepek (jan-klepek-gmail) wrote :

I'm Fedora package maintainer for subdownloader, I would really prefer to have 2.0.16 version or any other version without "ubuntu" words in version before I push this towards our users.

summary: - search
+ search - KeyError: 'MovieName'
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.