ソースを参照

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


読み込み中…
キャンセル
保存