cannot import imdb movie titles starting with a bracket

Bug #710860 reported by Tomáš Cícha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Griffith
Fix Committed
Low
Michael

Bug Description

When trying to import movie "(500) Days of Summer" from IMDb, field for title and original title remain empty. All other information seems to be OK. My wild guess here would be that there is some problem with a movie title starting with a bracket.
I am not a native speaker, so sorry for my English :)

Cheers,

Tom

Tags: imdb
Revision history for this message
Tomáš Cícha (tomas-cicha) wrote :

OK, i did a little peeking into the code and I think the solution would be as follows:

In file lib/plugins/movie/PluginMovieIMDB.py
on lines 56 and 61
change re.sub('[(].*', '', gutils.trim(self.page, '<title>', '</title>'))
to re.sub('[ ][(].*', '', gutils.trim(self.page, '<title>', '</title>'))

Please correct me if I am wrong on this.

Tom

summary: - imdb import buggy with non-standard character
+ cannot import imdb movie titles starting with a bracket
Revision history for this message
Michael (mikej06) wrote :

Fixed in rev. 1510.
Thanks for your work.

Changed in griffith:
assignee: nobody → Michael (mikej06)
importance: Undecided → Low
milestone: none → 0.13
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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