Browse files

Revert "Improved the title finding."

* //title is good enough.
  • Loading branch information...
1 parent e632858 commit cf512bc362cf76917ba0110e90136cce90ec80b6 @postmodern postmodern committed Aug 13, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/flv/video.rb
View
7 lib/flv/video.rb
@@ -20,13 +20,8 @@ def initialize(url)
@doc = Nokogiri::HTML(open(@url))
end
- TITLE_XPATHS = [
- "//meta[@name='description']/@content",
- "//title"
- ]
-
def title
- @title ||= @doc.at(TITLE_XPATHS.join('|')).inner_text
+ @title ||= @doc.at('//title').inner_text
end
def flashvars

0 comments on commit cf512bc

Please sign in to comment.