Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't start #885

Open
BillyV54 opened this issue Sep 16, 2024 · 0 comments
Open

can't start #885

BillyV54 opened this issue Sep 16, 2024 · 0 comments

Comments

@BillyV54
Copy link

  • scdlbot version:
  • Python version:
  • Operating System:Windows 10 Pro

Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

try:
import yt_dlp as ydl
except ImportError:
try:
import youtube_dl as ydl
except ImportError:
import youtube_dlc as ydl

from boltons.urlutils import URL
from plumbum import ProcessExecutionError, local

TG_BOT_TOKEN = os.environ['7252695423:AAFKLYyRXRTTewNhdGt8byWeCFiB1yc8fco']
TG_BOT_API = os.getenv("TG_BOT_API", "28690953")

https://github.com/python-telegram-bot/python-telegram-bot/wiki/Local-Bot-API-Server

https://github.com/tdlib/telegram-bot-api#usage

TG_BOT_API_LOCAL_MODE = False
if "TG_BOT_API_LOCAL_MODE" in os.environ:
TG_BOT_API_LOCAL_MODE = bool(int(os.getenv("TG_BOT_API_LOCAL_MODE", "0")))
elif "127.0.0.1" in TG_BOT_API or "localhost" in TG_BOT_API:
TG_BOT_API_LOCAL_MODE = True
HTTP_VERSION = "2"
if TG_BOT_API_LOCAL_MODE:
HTTP_VERSION = "1.1"
TG_BOT_OWNER_CHAT_ID = int(os.getenv("TG_BOT_OWNER_CHAT_ID", "6860819200"))

CHAT_STORAGE = os.path.expanduser(os.getenv("CHAT_STORAGE", "/tmp/scdlbot.pickle"))
DL_DIR = os.path.expanduser(os.getenv("DL_DIR", "/tmp/scdlbot"))
BIN_PATH = os.getenv("BIN_PATH", "")
scdl_bin = local[os.path.join(BIN_PATH, "scdl")]
bcdl_bin = local[os.path.join(BIN_PATH, "bandcamp-dl")]
BCDL_ENABLE = False
WORKERS = int(os.getenv("WORKERS", 2))

TODO try to change to spawn or forkserver to save RAM

mp_method = "fork"
if platform.system() == "Windows":
mp_method = "spawn"

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

PS C:\Users\admin> & D:/Python/python.exe c:/Users/admin/Desktop/scdlbot-master/scdlbot/main.py
Traceback (most recent call last):
File "c:\Users\admin\Desktop\scdlbot-master\scdlbot_main_.py", line 54, in
TG_BOT_TOKEN = os.environ["
photo_6001586505870590294_w
7252695423:AAFKLYyRXRTTewNhdGt8byWeCFiB1yc8fco"]
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 714, in getitem
KeyError: '7252695423:AAFKLYyRXRTTewNhdGt8byWeCFiB1yc8fco'
PS C:\Users\admin>
When i put bot token there not working
photo_6001586505870590294_w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant