소스 검색

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


불러오는 중...
취소
저장