]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/vine.py
Prepare to upload
[youtubedl] / youtube_dl / extractor / vine.py
index 4957a07f7bde0797f1f8b6f4c4ef9297f8e915e3..46950d3a1499b20bec50a9482d47a0ebdbbfb8b3 100644 (file)
@@ -92,10 +92,12 @@ class VineIE(InfoExtractor):
 
         username = data.get('username')
 
+        alt_title = 'Vine by %s' % username if username else None
+
         return {
             'id': video_id,
-            'title': data.get('description'),
-            'alt_title': 'Vine by %s' % username if username else None,
+            'title': data.get('description') or alt_title or 'Vine video',
+            'alt_title': alt_title,
             'thumbnail': data.get('thumbnailUrl'),
             'timestamp': unified_timestamp(data.get('created')),
             'uploader': username,