瀏覽代碼

[vidme] Use original vid.me title template for untitled videos

Sergey M․ 10 年之前
父節點
當前提交
4a8963770e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      youtube_dl/extractor/vidme.py

+ 2 - 2
youtube_dl/extractor/vidme.py

@@ -107,7 +107,7 @@ class VidmeIE(InfoExtractor):
         'info_dict': {
         'info_dict': {
             'id': 'e5g',
             'id': 'e5g',
             'ext': 'mp4',
             'ext': 'mp4',
-            'title': 'e5g',
+            'title': 'Video upload (e5g)',
             'thumbnail': 're:^https?://.*\.jpg',
             'thumbnail': 're:^https?://.*\.jpg',
             'timestamp': 1401480195,
             'timestamp': 1401480195,
             'upload_date': '20140530',
             'upload_date': '20140530',
@@ -180,7 +180,7 @@ class VidmeIE(InfoExtractor):
 
 
         return {
         return {
             'id': video_id,
             'id': video_id,
-            'title': title or video_id,
+            'title': title or 'Video upload (%s)' % video_id,
             'description': description,
             'description': description,
             'thumbnail': thumbnail,
             'thumbnail': thumbnail,
             'uploader': uploader,
             'uploader': uploader,