瀏覽代碼

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


Loading…
取消
儲存