From e34f06b412b7c949c2c6f498fb96c77f4e0870f7 Mon Sep 17 00:00:00 2001 From: tech234a <46801700+tech234a@users.noreply.github.com> Date: Fri, 18 Sep 2020 15:09:55 -0400 Subject: [PATCH] If captions information is not present, community contributions are not enabled --- discovery.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discovery.py b/discovery.py index 84e5455..2b806de 100644 --- a/discovery.py +++ b/discovery.py @@ -42,6 +42,8 @@ def getmetadata(vid): if "captions" in initplay.keys(): ccenabled = "contribute" in initplay["captions"]["playerCaptionsRenderer"] + else: + ccenabled = False # if captions information is not present, community contributions are not enabled recchans.add(initplay["videoDetails"]["channelId"]) elif line.strip().startswith('window["ytInitialData"] = '):