projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1978540
)
[udemy] Stringify video id
author
Sergey M․
<dstftw@gmail.com>
Thu, 22 Sep 2016 14:48:53 +0000
(21:48 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 22 Sep 2016 14:48:53 +0000
(21:48 +0700)
youtube_dl/extractor/udemy.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/udemy.py
b/youtube_dl/extractor/udemy.py
index c2f5072330e82b1acbd9649c8074c7173a536072..cce29c6e07134c58425f5486b15ce6d9e017d0d7 100644
(file)
--- 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'))