hotfix: specify ejs:github remote component
This commit is contained in:
@@ -2,7 +2,9 @@ import yt_dlp
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
def get_formats(url: str):
|
def get_formats(url: str):
|
||||||
ydl = yt_dlp.YoutubeDL()
|
ydl = yt_dlp.YoutubeDL(params={
|
||||||
|
'remote-components': 'ejs:github'
|
||||||
|
})
|
||||||
info = ydl.extract_info(url, download=False)
|
info = ydl.extract_info(url, download=False)
|
||||||
|
|
||||||
video_options = []
|
video_options = []
|
||||||
|
|||||||
Reference in New Issue
Block a user