Skip to content

Commit

Permalink
Merge branch 'master' of github.com:maddox/imdb
Browse files Browse the repository at this point in the history
  • Loading branch information
maddox committed Sep 29, 2009
2 parents 9601d01 + d75806a commit cb0e2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imdb/imdb.rb
Expand Up @@ -14,7 +14,7 @@ def self.find_movie_by_id(id)
movie = ImdbMovie.new

movie.imdb_id = id
movie.title = coder.decode(data.at("meta[@name='title']")['content'].gsub(/\(\d\d\d\d\)/,'').strip)
movie.title = coder.decode(data.at("meta[@name='title']")['content'].gsub(/\((\d{4}(\/[^)]*)?|[A-Z]+)\)/,'').strip)

rating_text = (data/"div.rating/div.meta/b").inner_text
if rating_text =~ /([\d\.]+)\/10/
Expand Down

0 comments on commit cb0e2c1

Please sign in to comment.