aboutsummaryrefslogtreecommitdiff
path: root/youtube_dlc/extractor/vimeo.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2020-10-26 21:20:09 +0530
committerpukkandan <pukkandan@gmail.com>2020-12-13 20:05:02 +0530
commiteb8a44336c3fbecefa9540794449adfd1b53d32b (patch)
tree6b4b8336da291bf0e4d76d3ba81500904ce9fef2 /youtube_dlc/extractor/vimeo.py
parent98e248faa49e69d795abc60f7cdefcf91e2612aa (diff)
Better Format Sorting (Squashed)
* Added --format-sort (-S height,filesize) * Made fields reversible (-S +height) * Added --format-sort-force, --no-format-sort-force * Added limit (-S height:720) * Added codec preference (-S vcodec,acodec) * Correct handling of preference<-1000 * Rebased to yt-dlc * Automatically determine missing bitrates * aext, vext, protocol, acodec, vcodec can now takes priority as string, not number (-S vext:webm) * Correct handling of None in codec, audio_codec (None means the codec is unknown while 'none' means it doesn't exist) * Correctly parse filesize (-S filesize:200M) * Generalized preference calculation * Rewrote entire code into the class FormatSort * Correctly handle user input errors * Combined fields (-S +ext:webm:webm) * Closest mode (-S filesize~50M) * Aliases (framerate=fps, br=bitrate etc) * Documentation
Diffstat (limited to 'youtube_dlc/extractor/vimeo.py')
-rw-r--r--youtube_dlc/extractor/vimeo.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/youtube_dlc/extractor/vimeo.py b/youtube_dlc/extractor/vimeo.py
index 51a0ab2fa..21f0620be 100644
--- a/youtube_dlc/extractor/vimeo.py
+++ b/youtube_dlc/extractor/vimeo.py
@@ -181,11 +181,11 @@ class VimeoBaseInfoExtractor(InfoExtractor):
'preference': 1,
})
- for f in formats:
- if f.get('vcodec') == 'none':
- f['preference'] = -50
- elif f.get('acodec') == 'none':
- f['preference'] = -40
+ # for f in formats:
+ # if f.get('vcodec') == 'none':
+ # f['preference'] = -50
+ # elif f.get('acodec') == 'none':
+ # f['preference'] = -40
subtitles = {}
text_tracks = config['request'].get('text_tracks')