mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-27 21:59:17 +01:00
[core] Address gaps in allowed extensions (#10362)
Some checks failed
CodeQL / Analyze (python) (push) Waiting to run
Download Tests / Quick Download Tests (push) Waiting to run
Download Tests / Full Download Tests (ubuntu-latest, 3.10) (push) Waiting to run
Download Tests / Full Download Tests (ubuntu-latest, 3.11) (push) Waiting to run
Download Tests / Full Download Tests (ubuntu-latest, 3.12) (push) Waiting to run
Download Tests / Full Download Tests (ubuntu-latest, pypy-3.10) (push) Waiting to run
Download Tests / Full Download Tests (ubuntu-latest, pypy-3.8) (push) Waiting to run
Download Tests / Full Download Tests (windows-latest, 3.8) (push) Waiting to run
Download Tests / Full Download Tests (windows-latest, pypy-3.9) (push) Waiting to run
Quick Test / Core Test (push) Waiting to run
Quick Test / Code check (push) Waiting to run
Release (master) / release (push) Waiting to run
Core Tests / Core Tests (ubuntu-latest, 3.10) (push) Has been cancelled
Core Tests / Core Tests (ubuntu-latest, 3.11) (push) Has been cancelled
Core Tests / Core Tests (ubuntu-latest, 3.12) (push) Has been cancelled
Core Tests / Core Tests (ubuntu-latest, 3.9) (push) Has been cancelled
Core Tests / Core Tests (ubuntu-latest, pypy-3.10) (push) Has been cancelled
Core Tests / Core Tests (ubuntu-latest, pypy-3.8) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, 3.12) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, 3.8) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, pypy-3.9) (push) Has been cancelled
Some checks failed
CodeQL / Analyze (python) (push) Waiting to run
Download Tests / Quick Download Tests (push) Waiting to run
Download Tests / Full Download Tests (ubuntu-latest, 3.10) (push) Waiting to run
Download Tests / Full Download Tests (ubuntu-latest, 3.11) (push) Waiting to run
Download Tests / Full Download Tests (ubuntu-latest, 3.12) (push) Waiting to run
Download Tests / Full Download Tests (ubuntu-latest, pypy-3.10) (push) Waiting to run
Download Tests / Full Download Tests (ubuntu-latest, pypy-3.8) (push) Waiting to run
Download Tests / Full Download Tests (windows-latest, 3.8) (push) Waiting to run
Download Tests / Full Download Tests (windows-latest, pypy-3.9) (push) Waiting to run
Quick Test / Core Test (push) Waiting to run
Quick Test / Code check (push) Waiting to run
Release (master) / release (push) Waiting to run
Core Tests / Core Tests (ubuntu-latest, 3.10) (push) Has been cancelled
Core Tests / Core Tests (ubuntu-latest, 3.11) (push) Has been cancelled
Core Tests / Core Tests (ubuntu-latest, 3.12) (push) Has been cancelled
Core Tests / Core Tests (ubuntu-latest, 3.9) (push) Has been cancelled
Core Tests / Core Tests (ubuntu-latest, pypy-3.10) (push) Has been cancelled
Core Tests / Core Tests (ubuntu-latest, pypy-3.8) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, 3.12) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, 3.8) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, pypy-3.9) (push) Has been cancelled
Adds some extensions missing in 5ce582448e
Closes #10360, Closes #10365
Authored by: bashonly
This commit is contained in:
parent
00766ece0c
commit
2469119490
1 changed files with 34 additions and 3 deletions
|
@ -5059,27 +5059,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',
|
||||||
'heic',
|
'heic',
|
||||||
|
@ -5089,6 +5115,7 @@ class _UnsafeExtensionError(Exception):
|
||||||
'jxl',
|
'jxl',
|
||||||
'svg',
|
'svg',
|
||||||
'tif',
|
'tif',
|
||||||
|
'tiff',
|
||||||
'wbmp',
|
'wbmp',
|
||||||
|
|
||||||
# subtitle
|
# subtitle
|
||||||
|
@ -5096,11 +5123,16 @@ class _UnsafeExtensionError(Exception):
|
||||||
'dfxp',
|
'dfxp',
|
||||||
'fs',
|
'fs',
|
||||||
'ismt',
|
'ismt',
|
||||||
|
'json3',
|
||||||
'sami',
|
'sami',
|
||||||
'scc',
|
'scc',
|
||||||
|
'srv1',
|
||||||
|
'srv2',
|
||||||
|
'srv3',
|
||||||
'ssa',
|
'ssa',
|
||||||
'tt',
|
'tt',
|
||||||
'ttml',
|
'ttml',
|
||||||
|
'xml',
|
||||||
|
|
||||||
# others
|
# others
|
||||||
*MEDIA_EXTENSIONS.manifests,
|
*MEDIA_EXTENSIONS.manifests,
|
||||||
|
@ -5111,7 +5143,6 @@ class _UnsafeExtensionError(Exception):
|
||||||
'sbv',
|
'sbv',
|
||||||
'url',
|
'url',
|
||||||
'webloc',
|
'webloc',
|
||||||
'xml',
|
|
||||||
])
|
])
|
||||||
|
|
||||||
def __init__(self, extension, /):
|
def __init__(self, extension, /):
|
||||||
|
|
Loading…
Reference in a new issue