diff options
author | bashonly <bashonly@protonmail.com> | 2024-07-05 13:41:30 -0500 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2024-07-11 00:50:46 +0100 |
commit | 43a74c5fa5e43ee563b1488634585cb0bf02ea24 (patch) | |
tree | 764ca6b4566579c1b32bae4b12fc12fe81e47785 | |
parent | a452f9437c8a3048f75fc12f75bcfd3eed78430f (diff) |
[core] Address gaps in allowed extensions
Adds some extensions missing in 46521096433aceaa41b4caa845bed22ca6f377ce
(from yt-dlp/yt-dlp#10362)
Authored by: bashonly
Co-authored by: dirkf
-rw-r--r-- | youtube_dl/utils.py | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 3ec9d3811..ac1e78002 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -6604,27 +6604,53 @@ class _UnsafeExtensionError(Exception): ), # video MEDIA_EXTENSIONS.video, ( - 'avif', + 'asx', 'ismv', + 'm2t', 'm2ts', + 'm2v', 'm4s', 'mng', + 'mp2v', + 'mp4v', + 'mpe', 'mpeg', + 'mpeg1', + 'mpeg2', + 'mpeg4', + 'mxf', + 'ogm', 'qt', + 'rm', 'swf', 'ts', + 'vob', 'vp9', - 'wvm', ), # audio MEDIA_EXTENSIONS.audio, ( + '3ga', + 'ac3', + 'adts', + 'aif', + 'au', + 'dts', 'isma', + 'it', 'mid', + 'mod', 'mpga', + 'mp1', + 'mp2', + 'mp4a', + 'mpa', 'ra', + 'shn', + 'xm', ), # image MEDIA_EXTENSIONS.thumbnails, ( + 'avif', 'bmp', 'gif', 'ico', @@ -6634,6 +6660,7 @@ class _UnsafeExtensionError(Exception): 'jxl', 'svg', 'tif', + 'tiff', 'wbmp', ), # subtitle @@ -6641,10 +6668,15 @@ class _UnsafeExtensionError(Exception): 'dfxp', 'fs', 'ismt', + 'json3', 'sami', 'scc', + 'srv1', + 'srv2', + 'srv3', 'ssa', 'tt', + 'xml', ), # others MEDIA_EXTENSIONS.manifests, @@ -6658,7 +6690,6 @@ class _UnsafeExtensionError(Exception): # 'swp', # 'url', # 'webloc', - # 'xml', ))) def __init__(self, extension): |