0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[udemy] Stringify video id

This commit is contained in:
Sergey M․ 2016-09-22 21:48:53 +07:00
parent 1978540a51
commit 0a439c5c4c
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -5,6 +5,7 @@
from .common import InfoExtractor
from ..compat import (
compat_HTTPError,
compat_str,
compat_urllib_request,
compat_urlparse,
)
@ -207,7 +208,7 @@ def _real_extract(self, url):
if youtube_url:
return self.url_result(youtube_url, 'Youtube')
video_id = asset['id']
video_id = compat_str(asset['id'])
thumbnail = asset.get('thumbnail_url') or asset.get('thumbnailUrl')
duration = float_or_none(asset.get('data', {}).get('duration'))