Преглед изворни кода

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'])

Loading…
Откажи
Сачувај