Преглед на файлове

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

pull/3/head
tech234a преди 3 години
родител
ревизия
e34f06b412
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. +2
    -0
      discovery.py

+ 2
- 0
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"] = '):


Зареждане…
Отказ
Запис