浏览代码

[izlesene] Fix extraction

description may be absent
Yen Chi Hsuan 9 年之前
父节点
当前提交
c9d448876f
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      youtube_dl/extractor/izlesene.py

+ 3 - 4
youtube_dl/extractor/izlesene.py

@@ -29,7 +29,7 @@ class IzleseneIE(InfoExtractor):
                 'ext': 'mp4',
                 'ext': 'mp4',
                 'title': 'Sevinçten Çıldırtan Doğum Günü Hediyesi',
                 'title': 'Sevinçten Çıldırtan Doğum Günü Hediyesi',
                 'description': 'md5:253753e2655dde93f59f74b572454f6d',
                 'description': 'md5:253753e2655dde93f59f74b572454f6d',
-                'thumbnail': 're:^http://.*\.jpg',
+                'thumbnail': 're:^https?://.*\.jpg',
                 'uploader_id': 'pelikzzle',
                 'uploader_id': 'pelikzzle',
                 'timestamp': int,
                 'timestamp': int,
                 'upload_date': '20140702',
                 'upload_date': '20140702',
@@ -44,8 +44,7 @@ class IzleseneIE(InfoExtractor):
                 'id': '17997',
                 'id': '17997',
                 'ext': 'mp4',
                 'ext': 'mp4',
                 'title': 'Tarkan Dortmund 2006 Konseri',
                 'title': 'Tarkan Dortmund 2006 Konseri',
-                'description': 'Tarkan Dortmund 2006 Konseri',
-                'thumbnail': 're:^http://.*\.jpg',
+                'thumbnail': 're:^https://.*\.jpg',
                 'uploader_id': 'parlayankiz',
                 'uploader_id': 'parlayankiz',
                 'timestamp': int,
                 'timestamp': int,
                 'upload_date': '20061112',
                 'upload_date': '20061112',
@@ -62,7 +61,7 @@ class IzleseneIE(InfoExtractor):
         webpage = self._download_webpage(url, video_id)
         webpage = self._download_webpage(url, video_id)
 
 
         title = self._og_search_title(webpage)
         title = self._og_search_title(webpage)
-        description = self._og_search_description(webpage)
+        description = self._og_search_description(webpage, default=None)
         thumbnail = self._proto_relative_url(
         thumbnail = self._proto_relative_url(
             self._og_search_thumbnail(webpage), scheme='http:')
             self._og_search_thumbnail(webpage), scheme='http:')