From de3b3db6d09a0a9125a2aea690f37fbb4e82fdd5 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Tue, 25 Aug 2020 00:45:57 +1200 Subject: [PATCH] Re-create resolution and qualityLabel fields --- extractors/video.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extractors/video.py b/extractors/video.py index ae5dae4..f44bcc4 100644 --- a/extractors/video.py +++ b/extractors/video.py @@ -226,6 +226,13 @@ def get_more_stuff_from_file(id, result): f["init"] = "{}-{}".format(i["initRange"]["start"], i["initRange"]["end"]) f["index"] = "{}-{}".format(i["indexRange"]["start"], i["indexRange"]["end"]) f["second__audioChannels"] = i["audioChannels"] + if f["second__height"]: + resolution = str(f["second__height"]) + "p" + f["resolution"] = resolution + label = resolution + if f["fps"] > 30: + label += str(f["fps"]) + f["qualityLabel"] = label except Exception: print("messed up extracting recommendations.")