Browse Source

If captions information is not present, community contributions are not enabled

pull/3/head
tech234a 3 years ago
parent
commit
e34f06b412
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      discovery.py

+ 2
- 0
discovery.py View File

@@ -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"] = '):


Loading…
Cancel
Save