Ver a proveniência

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

pull/3/head
tech234a há 3 anos
ascendente
cometimento
e34f06b412
1 ficheiros alterados com 2 adições e 0 eliminações
  1. +2
    -0
      discovery.py

+ 2
- 0
discovery.py Ver ficheiro

@@ -42,6 +42,8 @@ def getmetadata(vid):
if "captions" in initplay.keys(): if "captions" in initplay.keys():
ccenabled = "contribute" in initplay["captions"]["playerCaptionsRenderer"] 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"]) recchans.add(initplay["videoDetails"]["channelId"])
elif line.strip().startswith('window["ytInitialData"] = '): elif line.strip().startswith('window["ytInitialData"] = '):


Carregando…
Cancelar
Guardar