Permalink
Browse files

added category to the youtube provider

  • Loading branch information...
1 parent 5092752 commit 89e55dfd0dbb7f0586978928075a654c2bc94881 @filipepina committed Dec 12, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/provider/youtube.rb
View
@@ -30,6 +30,7 @@ def get_info
@title = doc.search("media:title").inner_text
@description = doc.search("media:description").inner_text
@keywords = doc.search("media:keywords").inner_text
+ @category = doc.search("media:category").inner_text
@duration = doc.search("yt:duration").first[:seconds].to_i
@date = Time.parse(doc.search("published").inner_text, Time.now.utc)
@thumbnail_small = doc.search("media:thumbnail").min { |a,b| a[:height].to_i * a[:width].to_i <=> b[:height].to_i * b[:width].to_i }[:url]

0 comments on commit 89e55df

Please sign in to comment.