yayimdbs 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/yay_imdbs.rb +1 -1
- metadata +2 -2
data/lib/yay_imdbs.rb
CHANGED
@@ -223,7 +223,7 @@ class YayImdbs
|
|
223
223
|
title_text = doc.at_css("meta[name='title']").try(:[], 'content')
|
224
224
|
title_text = title_text.sub(/^IMDb - /, '')
|
225
225
|
# Matches 'Movie Name (2010)' or 'Movie Name (2010/I)' or 'Lost (TV Series 2004–2010)'
|
226
|
-
if title_text && title_text =~ /(.*) \([^\)0-9]*(\d{4})((\/\w*)|(.\d{4})|(
|
226
|
+
if title_text && title_text =~ /(.*) \([^\)0-9]*(\d{4})((\/\w*)|(.\d{4})|([^\)]*))?\)/
|
227
227
|
movie_title = clean_title($1)
|
228
228
|
movie_year = $2.to_i
|
229
229
|
end
|