projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48dce58
)
[udemy] Fix outputs' formats format_id
author
Sergey M․
<dstftw@gmail.com>
Sat, 26 Mar 2016 17:43:25 +0000
(23:43 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 26 Mar 2016 17:43:25 +0000
(23:43 +0600)
youtube_dl/extractor/udemy.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/udemy.py
b/youtube_dl/extractor/udemy.py
index 100db4dd02339208c85df55fff0edddbf4403aff..89e7132858e765aa60d801b87c2d85ce6cb755a7 100644
(file)
--- a/
youtube_dl/extractor/udemy.py
+++ b/
youtube_dl/extractor/udemy.py
@@
-201,7
+201,7
@@
class UdemyIE(InfoExtractor):
def extract_output_format(src):
return {
'url': src['url'],
- 'format_id': '%sp' % (src.get('
label
') or format_id),
+ 'format_id': '%sp' % (src.get('
height
') or format_id),
'width': int_or_none(src.get('width')),
'height': int_or_none(src.get('height')),
'vbr': int_or_none(src.get('video_bitrate_in_kbps')),