import os from telethon.tl import types from telethon.utils import get_attributes from userbot import client from userbot.utils.helpers import is_ffmpeg_there, ProgressCallback from userbot.helper_funcs.yt_dl import (extract_info, list_formats, ProgressHook, YTdlLogger) audioFormats = ["aac", "flac", "mp3", "m4a", "opus", "vorbis", "wav"] videoFormats = ["mp4", "flv", "ogg", "webm", "mkv", "avi"] ydl_opts = { 'logger': YTdlLogger(), 'progress_hooks': [], 'postprocessors': [], 'restrictfilenames': False, 'outtmpl': 'YT_DL/%(title)s_{time}.%(ext)s', 'prefer_ffmpeg': True, 'geo_bypass': True, 'nocheckcertificate': True, 'logtostderr': False, 'quiet': True, 'embedthumbnail': True, 'addmetadata': True, 'writethumbnail': True, 'ignoreerrors': False, 'noplaylist': False }
from userbot import client from userbot.utils.helpers import is_ffmpeg_there, ProgressCallback from userbot.helper_funcs.yt_dl import ( extract_info, list_formats, ProgressHook, YTdlLogger, ) audioFormats = ["aac", "flac", "mp3", "m4a", "opus", "vorbis", "wav"] videoFormats = ["mp4", "flv", "ogg", "webm", "mkv", "avi"] ydl_opts = { "logger": YTdlLogger(), "progress_hooks": [], "postprocessors": [], "restrictfilenames": True, "outtmpl": "YT_DL/%(title)s_{time}.%(ext)s", "prefer_ffmpeg": True, "geo_bypass": True, "nocheckcertificate": True, "logtostderr": False, "quiet": True, "addmetadata": True, "embedthumbnail": True, "writethumbnail": True, "ignoreerrors": False, "noplaylist": True, }