1
0
mirror of https://git.sr.ht/~cadence/NewLeaf synced 2024-11-14 03:57:31 +00:00

Replace audio/m4a with audio/mp4 in DASH manifest

This commit is contained in:
Cadence Ember 2020-08-09 21:28:10 +12:00
parent 761561edec
commit 18b383386f
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412

View File

@ -275,6 +275,8 @@ class Second(object):
adaptation_sets_dict = {}
for f in video["adaptiveFormats"]:
mime = f["second__mime"]
if mime == "audio/m4a":
mime = "audio/mp4"
if not mime in adaptation_sets_dict:
adaptation_sets_dict[mime] = []
ads = adaptation_sets_dict[mime]