1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:06:49 +00:00

[core] Address gaps in allowed extensions

Adds some extensions missing in 4652109643
(from yt-dlp/yt-dlp#10362)

Authored by: bashonly
Co-authored by: dirkf
This commit is contained in:
bashonly 2024-07-05 13:41:30 -05:00 committed by dirkf
parent a452f9437c
commit 43a74c5fa5

View File

@ -6604,27 +6604,53 @@ class _UnsafeExtensionError(Exception):
), ),
# video # video
MEDIA_EXTENSIONS.video, ( MEDIA_EXTENSIONS.video, (
'avif', 'asx',
'ismv', 'ismv',
'm2t',
'm2ts', 'm2ts',
'm2v',
'm4s', 'm4s',
'mng', 'mng',
'mp2v',
'mp4v',
'mpe',
'mpeg', 'mpeg',
'mpeg1',
'mpeg2',
'mpeg4',
'mxf',
'ogm',
'qt', 'qt',
'rm',
'swf', 'swf',
'ts', 'ts',
'vob',
'vp9', 'vp9',
'wvm',
), ),
# audio # audio
MEDIA_EXTENSIONS.audio, ( MEDIA_EXTENSIONS.audio, (
'3ga',
'ac3',
'adts',
'aif',
'au',
'dts',
'isma', 'isma',
'it',
'mid', 'mid',
'mod',
'mpga', 'mpga',
'mp1',
'mp2',
'mp4a',
'mpa',
'ra', 'ra',
'shn',
'xm',
), ),
# image # image
MEDIA_EXTENSIONS.thumbnails, ( MEDIA_EXTENSIONS.thumbnails, (
'avif',
'bmp', 'bmp',
'gif', 'gif',
'ico', 'ico',
@ -6634,6 +6660,7 @@ class _UnsafeExtensionError(Exception):
'jxl', 'jxl',
'svg', 'svg',
'tif', 'tif',
'tiff',
'wbmp', 'wbmp',
), ),
# subtitle # subtitle
@ -6641,10 +6668,15 @@ class _UnsafeExtensionError(Exception):
'dfxp', 'dfxp',
'fs', 'fs',
'ismt', 'ismt',
'json3',
'sami', 'sami',
'scc', 'scc',
'srv1',
'srv2',
'srv3',
'ssa', 'ssa',
'tt', 'tt',
'xml',
), ),
# others # others
MEDIA_EXTENSIONS.manifests, MEDIA_EXTENSIONS.manifests,
@ -6658,7 +6690,6 @@ class _UnsafeExtensionError(Exception):
# 'swp', # 'swp',
# 'url', # 'url',
# 'webloc', # 'webloc',
# 'xml',
))) )))
def __init__(self, extension): def __init__(self, extension):