mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
uppercase IPv6
This commit is contained in:
parent
296efdbd1b
commit
49095af268
@ -17,7 +17,7 @@ from config import APP_HASH, APP_ID, PYRO_WORKERS, TOKEN
|
||||
def create_app(session="ytdl", workers=PYRO_WORKERS):
|
||||
_app = Client(session, APP_ID, APP_HASH,
|
||||
bot_token=TOKEN, workers=workers,
|
||||
ipv6=os.getenv("ipv6", False),
|
||||
ipv6=os.getenv("IPv6", False),
|
||||
# proxy={"hostname": "host.docker.internal", "port": 1080}
|
||||
)
|
||||
|
||||
|
@ -202,7 +202,7 @@ def ytdl_download(url, tempdir, bm) -> dict:
|
||||
adjust_formats(chat_id, url, formats)
|
||||
add_instagram_cookies(url, ydl_opts)
|
||||
|
||||
address = ["::", "0.0.0.0"] if os.getenv("ipv6") else [None]
|
||||
address = ["::", "0.0.0.0"] if os.getenv("IPv6") else [None]
|
||||
|
||||
for format_ in formats:
|
||||
ydl_opts["format"] = format_
|
||||
|
Loading…
Reference in New Issue
Block a user