fix youtube orgies on WPD

pull/232/head
Aevann 2024-07-23 20:45:15 +03:00
parent 2c68a68cea
commit b6aa6524ab
1 changed files with 0 additions and 13 deletions

View File

@ -249,19 +249,6 @@ def schedule_orgy(v, chat_id):
if duration != 'P0D':
duration = isodate.parse_duration(duration).total_seconds()
end_utc = int(start_utc + duration)
orgy_type = 'file'
ydl_opts = {
"quiet": True,
"simulate": True,
"forceurl": True,
'format': 'b',
'proxy': PROXY_URL
}
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
info = ydl.extract_info(f"https://www.youtube.com/watch?v={id}")
data = info["url"]
elif rumble_regex.match(normalized_link):
orgy_type = 'rumble'
data = normalized_link