From 18b383386f18c40f7c863a193bdbb2354925aa78 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sun, 9 Aug 2020 21:28:10 +1200 Subject: [PATCH] Replace audio/m4a with audio/mp4 in DASH manifest --- index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.py b/index.py index 7c83597..35d3496 100644 --- a/index.py +++ b/index.py @@ -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]