projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fbc2dcb
)
Correct automatic resolution determination
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 10 Mar 2014 09:29:25 +0000
(10:29 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 10 Mar 2014 09:29:25 +0000
(10:29 +0100)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index fcb8dd19c3facb17717aef308e08bc399dd0496c..523eba3c1e1287c6813de63825613ab39d63d8a7 100644
(file)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-416,9
+416,9
@@
class YoutubeDL(object):
if template_dict.get('width') and template_dict.get('height'):
template_dict['resolution'] = '%dx%d' % (template_dict['width'], template_dict['height'])
elif template_dict.get('height'):
if template_dict.get('width') and template_dict.get('height'):
template_dict['resolution'] = '%dx%d' % (template_dict['width'], template_dict['height'])
elif template_dict.get('height'):
-
res
= '%sp' % template_dict['height']
+
template_dict['resolution']
= '%sp' % template_dict['height']
elif template_dict.get('width'):
elif template_dict.get('width'):
-
res
= '?x%d' % template_dict['width']
+
template_dict['resolution']
= '?x%d' % template_dict['width']
sanitize = lambda k, v: sanitize_filename(
compat_str(v),
sanitize = lambda k, v: sanitize_filename(
compat_str(v),