handle dash formatless streams

This commit is contained in:
meeb 2020-12-13 21:22:22 +11:00
parent ce50eaaac8
commit 7dd76a74b0
1 changed files with 1 additions and 1 deletions

View File

@ -661,7 +661,7 @@ class Media(models.Model):
vformat = cformat
if vformat:
video_format = vformat['format'].lower()
if ' ' in video_format or not video_format.lower().endswith('p'):
if 'dash' in video_format:
height = vformat.get('height', 0)
if height > 0:
fmt.append(f'{height}p')