Class: EhbrsRubyUtils::Videos::Opensubtitles::Parsers::Title

Inherits:
Aranha::Parsers::Html::ItemList
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title.rb

Constant Summary collapse

ITEMS_XPATH =
'//table[@id = "search_results"]/tbody/tr[@itemprop = "episode"]'

Instance Method Summary collapse

Instance Method Details

#dataObject



19
20
21
# File 'lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title.rb', line 19

def data
  { episodes: items_data }
end

#items_xpathObject



15
16
17
# File 'lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title.rb', line 15

def items_xpath
  ITEMS_XPATH
end