本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
JustAnotherArchivist
/
little-things
關注
2
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
Use _type instead of key check hack
master
JustAnotherArchivist
1 年之前
父節點
ec20f38c82
當前提交
34a3c9d0f3
共有
1 個檔案被更改
,包括
2 行新增
和
2 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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'])
Write
Preview
Loading…
取消
儲存