1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-20 16:15:41 +07:00

Improve URL extraction

This commit is contained in:
Sergey M․
2018-07-21 19:08:28 +07:00
parent 4ecf300d13
commit 3052a30d42
47 changed files with 166 additions and 139 deletions

View File

@@ -16,6 +16,7 @@
int_or_none,
try_get,
unified_timestamp,
url_or_none,
)
@@ -176,8 +177,8 @@ def _entries(self, playlist_id, *args, **kwargs):
break
for result in results:
video_url = result.get('video_url')
if not video_url or not isinstance(video_url, compat_str):
video_url = url_or_none(result.get('video_url'))
if not video_url:
continue
entry = self._extract_video(result, require_title=False)
entry.update({