|
|
@ -2451,7 +2451,7 @@ class YoutubeDL:
|
|
|
|
# for extractors with incomplete formats (audio only (soundcloud)
|
|
|
|
# for extractors with incomplete formats (audio only (soundcloud)
|
|
|
|
# or video only (imgur)) best/worst will fallback to
|
|
|
|
# or video only (imgur)) best/worst will fallback to
|
|
|
|
# best/worst {video,audio}-only format
|
|
|
|
# best/worst {video,audio}-only format
|
|
|
|
matches = formats
|
|
|
|
matches = list(filter(lambda f: f.get('vcodec') != 'none' or f.get('acodec') != 'none', formats))
|
|
|
|
elif seperate_fallback and not ctx['has_merged_format']:
|
|
|
|
elif seperate_fallback and not ctx['has_merged_format']:
|
|
|
|
# for compatibility with youtube-dl when there is no pre-merged format
|
|
|
|
# for compatibility with youtube-dl when there is no pre-merged format
|
|
|
|
matches = list(filter(seperate_fallback, formats))
|
|
|
|
matches = list(filter(seperate_fallback, formats))
|
|
|
|