forked from rDrama/rDrama
1
0
Fork 0

Switch youtube_dl for yt_dlp (#178)

See #3. Tested by uploading anthem to test account and playing it back.

Co-authored-by: vasya <vasya34@proton.me>
Reviewed-on: rDrama/rDrama#178
Co-authored-by: vasya <vasya@noreply.fsdfsd.net>
Co-committed-by: vasya <vasya@noreply.fsdfsd.net>
master
vasya 2023-08-05 01:48:47 +00:00 committed by Aevann
parent eae7aec5f8
commit 63f9d02abc
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,6 @@ COPY requirements.txt /requirements.txt
COPY scripts/startup_docker_chat.sh /s
RUN pip3 install -r /requirements.txt
RUN pip3 install youtube-dl
RUN mkdir /images
RUN mkdir /chat_images

View File

@ -5,7 +5,7 @@ from shutil import copyfile
import pyotp
import requests
import youtube_dl
import yt_dlp
from sqlalchemy.orm import load_only
@ -824,7 +824,7 @@ def _change_song_youtube(vid, id):
}],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
try: ydl.download([f"https://youtube.com/watch?v={id}"])
except Exception as e:
print(e, flush=True)

View File

@ -31,3 +31,4 @@ user-agents
psycopg2-binary
yattag
webptools
yt_dlp