Explorar el Código

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

pull/3/head
tech234a hace 3 años
padre
commit
e34f06b412
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      discovery.py

+ 2
- 0
discovery.py Ver fichero

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


Cargando…
Cancelar
Guardar