[facebook] Correct login (Fixes #2743)
[youtube-dl] / youtube_dl / extractor / vube.py
index 799f9186cfbc84d857926b4dab5bfe5925c2dd34..935c97ae9bd2f4219fe14bcc2b003b55d7d4fbcf 100644 (file)
@@ -1,4 +1,3 @@
-# encoding: utf-8
 from __future__ import unicode_literals
 
 import re
@@ -14,9 +13,10 @@ class VubeIE(InfoExtractor):
 
     _TEST = {
         'url': 'http://vube.com/Chiara+Grispo+Video+Channel/YL2qNPkqon',
-        'file': 'YL2qNPkqon.mp4',
-        'md5': 'f81dcf6d0448e3291f54380181695821',
+        'md5': 'db7aba89d4603dadd627e9d1973946fe',
         'info_dict': {
+            'id': 'YL2qNPkqon',
+            'ext': 'mp4',
             'title': 'Chiara Grispo - Price Tag by Jessie J',
             'description': 'md5:8ea652a1f36818352428cb5134933313',
             'thumbnail': 'http://frame.thestaticvube.com/snap/228x128/102e7e63057-5ebc-4f5c-4065-6ce4ebde131f.jpg',
@@ -46,7 +46,7 @@ class VubeIE(InfoExtractor):
         self._sort_formats(formats)
 
         title = video['title']
-        description = video['description']
+        description = video.get('description')
         thumbnail = video['thumbnail_src']
         if thumbnail.startswith('//'):
             thumbnail = 'http:' + thumbnail
@@ -77,4 +77,4 @@ class VubeIE(InfoExtractor):
             'like_count': like_count,
             'dislike_count': dislike_count,
             'comment_count': comment_count,
-        }
\ No newline at end of file
+        }