Commit 32d9d2f34abdd44346882179c95c29c279e9d018

Authored by Evandro Junior
1 parent 029064e1

Removed duration time for youtube

Showing 1 changed file with 0 additions and 5 deletions   Show diff stats
plugins/video/lib/video_plugin/video.rb
@@ -140,11 +140,6 @@ class VideoPlugin::Video < Article @@ -140,11 +140,6 @@ class VideoPlugin::Video < Article
140 self.video_height = vid['height'] 140 self.video_height = vid['height']
141 self.video_thumbnail_width = vid['thumbnail_width'] 141 self.video_thumbnail_width = vid['thumbnail_width']
142 self.video_thumbnail_height = vid['thumbnail_height'] 142 self.video_thumbnail_height = vid['thumbnail_height']
143 - url = "http://gdata.youtube.com/feeds/api/videos/#{self.video_id}?alt=json";  
144 - resp = Net::HTTP.get_response(URI.parse(url))  
145 - buffer = resp.body  
146 - vid = JSON.parse(buffer)  
147 - self.video_duration = vid['entry']['media$group']['media$content'][0]['duration']  
148 end 143 end
149 144
150 def fill_vimeo_video_properties 145 def fill_vimeo_video_properties