소스 검색

Use _type instead of key check hack

master
JustAnotherArchivist 1 년 전
부모
커밋
34a3c9d0f3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      youtube-channel-list.py

+ 2
- 2
youtube-channel-list.py 파일 보기

@@ -10,7 +10,7 @@ with yt_dlp.YoutubeDL({'quiet': True}) as ydl:
q.append(ie.extract(url))
while q:
e = q.popleft()
if 'entries' in e:
if e['_type'] == 'playlist':
q.extend(e['entries'])
elif 'id' in e:
elif e['_type'] == 'url':
print(e['id'])

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