lib/imdb_term/scraper.rb in imdb_term-1.0.2 vs lib/imdb_term/scraper.rb in imdb_term-1.0.4

- old
+ new

@@ -59,10 +59,10 @@ directors = title_overview.css('div.plot_summary_wrapper span[itemprop="director"] span') movie = { :id => id, :title => title_overview.css('div.title_wrapper > h1').text.strip[(0..-8)], :release_year => title_overview.css('span#titleYear a').text.strip, - :content_rating => title_overview.css('div.subtext meta').attribute('content').value, + :content_rating => title_overview.css('div.subtext').text, :runtime => title_overview.css('div.subtext time').text.strip, :genres => title_overview.css('div.subtext span.itemprop').map { |e| e.text }, :summary => title_overview.css('div.plot_summary_wrapper div.summary_text').text.strip, :director => directors.size > 1 ? directors.map{|e| e.text}.join(', ') : directors.text, :stars => title_overview.css('div.plot_summary_wrapper span[itemprop="actors"] span').map { |e| e.text }