aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2016-09-22 21:48:53 +0700
committerSergey M․ <[email protected]>2016-09-22 21:48:53 +0700
commit0a439c5c4c1a6a2ee54465c5ad893ffb768539d3 (patch)
treee250d07a504ddc6e79b7194a9fb8c53c4fb78016
parent1978540a5122c53012e17a78841f3da0df77fd34 (diff)
downloadyoutube-dl-0a439c5c4c1a6a2ee54465c5ad893ffb768539d3.tar.gz
youtube-dl-0a439c5c4c1a6a2ee54465c5ad893ffb768539d3.zip
[udemy] Stringify video id
-rw-r--r--youtube_dl/extractor/udemy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py
index c2f507233..cce29c6e0 100644
--- a/youtube_dl/extractor/udemy.py
+++ b/youtube_dl/extractor/udemy.py
@@ -5,6 +5,7 @@ import re
from .common import InfoExtractor
from ..compat import (
compat_HTTPError,
+ compat_str,
compat_urllib_request,
compat_urlparse,
)
@@ -207,7 +208,7 @@ class UdemyIE(InfoExtractor):
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'))