mirror of
https://git.sr.ht/~cadence/NewLeaf
synced 2024-11-22 07:37:29 +00:00
Replace audio/m4a with audio/mp4 in DASH manifest
This commit is contained in:
parent
761561edec
commit
18b383386f
2
index.py
2
index.py
@ -275,6 +275,8 @@ class Second(object):
|
|||||||
adaptation_sets_dict = {}
|
adaptation_sets_dict = {}
|
||||||
for f in video["adaptiveFormats"]:
|
for f in video["adaptiveFormats"]:
|
||||||
mime = f["second__mime"]
|
mime = f["second__mime"]
|
||||||
|
if mime == "audio/m4a":
|
||||||
|
mime = "audio/mp4"
|
||||||
if not mime in adaptation_sets_dict:
|
if not mime in adaptation_sets_dict:
|
||||||
adaptation_sets_dict[mime] = []
|
adaptation_sets_dict[mime] = []
|
||||||
ads = adaptation_sets_dict[mime]
|
ads = adaptation_sets_dict[mime]
|
||||||
|
Loading…
Reference in New Issue
Block a user