This website works better with JavaScript.
Home
Explore
Help
Sign In
JustAnotherArchivist
/
little-things
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Use _type instead of key check hack
master
JustAnotherArchivist
1 year ago
parent
ec20f38c82
commit
34a3c9d0f3
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
youtube-channel-list.py
+ 2
- 2
youtube-channel-list.py
View File
@@ -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'])
Write
Preview
Loading…
Cancel
Save