Parcourir la source

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

pull/3/head
tech234a il y a 3 ans
Parent
révision
e34f06b412
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. +2
    -0
      discovery.py

+ 2
- 0
discovery.py Voir le fichier

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


Chargement…
Annuler
Enregistrer