projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fac2af3
)
[downloader/f4m] Simply select format when it's the only one
author
Sergey M․
<dstftw@gmail.com>
Thu, 26 May 2016 19:46:12 +0000
(
01:46
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 26 May 2016 19:46:12 +0000
(
01:46
+0600)
youtube_dl/downloader/f4m.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/f4m.py
b/youtube_dl/downloader/f4m.py
index 314def4cb031abe1ff2d198856c4022885a242f8..8f88b02414a28a8da650e03418c8ecd7e52a59a6 100644
(file)
--- a/
youtube_dl/downloader/f4m.py
+++ b/
youtube_dl/downloader/f4m.py
@@
-319,7
+319,7
@@
class F4mFD(FragmentFD):
doc = compat_etree_fromstring(manifest)
formats = [(int(f.attrib.get('bitrate', -1)), f)
for f in self._get_unencrypted_media(doc)]
- if requested_bitrate is None:
+ if requested_bitrate is None
or len(formats) == 1
:
# get the best format
formats = sorted(formats, key=lambda f: f[0])
rate, media = formats[-1]