Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* allow different ytdl version also, in voice call plugins 

Co-authored-by: rking32 <[email protected]>

* fix typo

Co-authored-by: rking32 <[email protected]>
  • Loading branch information
SpEcHiDe and rking32 authored Nov 3, 2021
1 parent eb5529b commit 68f6636
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion userge/plugins/utils/voice_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@

import asyncio
import glob
import importlib
import os
import re
import shutil
from traceback import format_exc
from typing import List, Tuple

import ffmpeg
import youtube_dl as ytdl
from pyrogram.raw import functions
from pyrogram.types import (
InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery, Message as RawMessage
Expand All @@ -34,6 +34,14 @@
from userge.utils.exceptions import StopConversation

CHANNEL = userge.getCLogger(__name__)
LOGGER = userge.getLogger(__name__)

reqd_module = os.environ.get("YOUTUBE_DL_PATH", "youtube_dl")
try:
ytdl = importlib.import_module(reqd_module)
except ModuleNotFoundError:
LOGGER.info("please fix your requirements.txt file")
raise

VC_DB = get_collection("VC_CMDS_TOGGLE")
CMDS_FOR_ALL = False
Expand Down

0 comments on commit 68f6636

Please sign in to comment.