Class: Imdb::Movie

Inherits:
Object
  • Object
show all
Defined in:
lib/movie-renamer/imdb.rb

Instance Method Summary collapse

Instance Method Details

#directorObject

TODO improve this ‘cause imdb site has changed



14
15
16
17
# File 'lib/movie-renamer/imdb.rb', line 14

def director
    document.at("h4[text()='Director:'] ~ a").innerHTML.strip.imdb_unescape_html rescue nil
    document.search("h4[text()^='Director'] ~ a").map { |link| link.innerHTML.strip.imdb_unescape_html } rescue []
end