exclude all untested formats
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m15s
Build and Push Docker Image / deploy-on-green (push) Successful in 10s

This commit is contained in:
2025-08-02 15:43:53 -04:00
parent dbcc948239
commit c0a9422fbd

View File

@@ -10,7 +10,7 @@ def get_formats(url: str):
for fmt in info['formats']:
# Video-only
if fmt.get('vcodec') != 'none' and fmt.get('acodec') == 'none':
if fmt.get('vcodec') != 'none' and fmt.get('acodec') == 'none' and fmt.get('__needs_testing') == None:
video_options.append({
'height': fmt.get('height'),
'resolution': fmt.get('resolution'),
@@ -19,7 +19,7 @@ def get_formats(url: str):
'tbr': fmt.get('tbr'),
})
# Audio-only
elif fmt.get('acodec') != 'none' and fmt.get('vcodec') == 'none':
elif fmt.get('acodec') != 'none' and fmt.get('vcodec') == 'none' and fmt.get('__needs_testing') == None:
audio_options.append({
'format': fmt.get('format'),
'format_id': fmt.get('format_id'),