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



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

def data
  { episodes: items_data }
end

#items_xpathObject



12
13
14
# File 'lib/ehbrs_ruby_utils/videos/opensubtitles/parsers/title.rb', line 12

def items_xpath
  ITEMS_XPATH
end