yayimdbs 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/yay_imdbs.rb +1 -1
  2. 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})|(.\s))?\)/
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 5
9
- version: 0.2.5
8
+ - 6
9
+ version: 0.2.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sam Cavenagh