]> jfr.im git - yt-dlp.git/commitdiff
[FormatSort] Add `mov` to `vext`
authorpukkandan <redacted>
Fri, 18 Nov 2022 06:01:15 +0000 (11:31 +0530)
committerpukkandan <redacted>
Sat, 19 Nov 2022 03:34:01 +0000 (09:04 +0530)
Closes #5581

README.md
yt_dlp/utils.py

index 367c6e0364a09e71714919b0e6a92827b6189ae8..f336dcb6acbc7dde68e0a05b67541d1f1f3fbcb6 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1490,7 +1490,7 @@ ## Sorting Formats
  - `vcodec`: Video Codec (`av01` > `vp9.2` > `vp9` > `h265` > `h264` > `vp8` > `h263` > `theora` > other)
  - `acodec`: Audio Codec (`flac`/`alac` > `wav`/`aiff` > `opus` > `vorbis` > `aac` > `mp4a` > `mp3` > `eac3` > `ac3` > `dts` > other)
  - `codec`: Equivalent to `vcodec,acodec`
- - `vext`: Video Extension (`mp4` > `webm` > `flv` > other). If `--prefer-free-formats` is used, `webm` is preferred.
+ - `vext`: Video Extension (`mp4` > `mov` > `webm` > `flv` > other). If `--prefer-free-formats` is used, `webm` is preferred.
  - `aext`: Audio Extension (`m4a` > `aac` > `mp3` > `ogg` > `opus` > `webm` > other). If `--prefer-free-formats` is used, the order changes to `ogg` > `opus` > `webm` > `mp3` > `m4a` > `aac`
  - `ext`: Equivalent to `vext,aext`
  - `filesize`: Exact filesize, if known in advance
@@ -1566,7 +1566,7 @@ # Download the best mp4 video available, or the best video if no mp4 available
 $ yt-dlp -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b"
 
 # Download the best video with the best extension
-# (For video, mp4 > webm > flv. For audio, m4a > aac > mp3 ...)
+# (For video, mp4 > mov > webm > flv. For audio, m4a > aac > mp3 ...)
 $ yt-dlp -S "ext"
 
 
index 0283c45f65bba32fe24003935be18ec44b6e5a06..d351d0e36b8cb19561867a5d38d6b730e5114071 100644 (file)
@@ -6020,8 +6020,8 @@ class FormatSorter:
         'proto': {'type': 'ordered', 'regex': True, 'field': 'protocol',
                   'order': ['(ht|f)tps', '(ht|f)tp$', 'm3u8.*', '.*dash', 'websocket_frag', 'rtmpe?', '', 'mms|rtsp', 'ws|websocket', 'f4']},
         'vext': {'type': 'ordered', 'field': 'video_ext',
-                 'order': ('mp4', 'webm', 'flv', '', 'none'),
-                 'order_free': ('webm', 'mp4', 'flv', '', 'none')},
+                 'order': ('mp4', 'mov', 'webm', 'flv', '', 'none'),
+                 'order_free': ('webm', 'mp4', 'mov', 'flv', '', 'none')},
         'aext': {'type': 'ordered', 'field': 'audio_ext',
                  'order': ('m4a', 'aac', 'mp3', 'ogg', 'opus', 'webm', '', 'none'),
                  'order_free': ('ogg', 'opus', 'webm', 'mp3', 'm4a', 'aac', '', 'none')},