yayimdbs 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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