1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Fix problem with videos with no sound

This commit is contained in:
Maksym Pavlenko
2017-08-19 10:25:57 -07:00
parent c573f3b41b
commit 0432ebbdc9

View File

@ -88,7 +88,7 @@ def _choose_url(info, quality):
# Filter formats by file extension
ext = 'mp4' if is_video else 'm4a'
fmt_list = [x for x in info['formats'] if x['ext'] == ext]
fmt_list = [x for x in info['formats'] if x['ext'] == ext and x['format_note'] != 'DASH video']
if not len(fmt_list):
return info['url']