From 84003868b9abf83fc43f82f8ff71b3db4b6bded1 Mon Sep 17 00:00:00 2001 From: Sergio Date: Wed, 21 Feb 2024 09:54:10 +0100 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20bot=5Fyoutube.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash/auto_raspi.sh | 2 +- python/bot_youtube.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bash/auto_raspi.sh b/bash/auto_raspi.sh index f2a0061..26aab18 100755 --- a/bash/auto_raspi.sh +++ b/bash/auto_raspi.sh @@ -32,7 +32,7 @@ fi # en modo pantalla completa y en bucle if [[ $1 == 3 ]] then - FOLDER=/home/sergio/Vídeos/zx_spectrum + FOLDER=/home/sergio/Vídeos/autoraspi/ VIDEOS=("${FOLDER}"/*) NUM=$(( RANDOM % ${#VIDEOS[@]})) ls -d $FOLDER > /tmp/auto_raspi.m3u diff --git a/python/bot_youtube.py b/python/bot_youtube.py index bde9174..f940275 100644 --- a/python/bot_youtube.py +++ b/python/bot_youtube.py @@ -43,6 +43,7 @@ def read_msg(offset): yt = YouTube(link) title = re.sub(r"[^a-zA-Z0-9 ]", "", yt.title) username = i["message"]["from"]["username"] + '/' + username = '/home/sergio/downloads/' try: os.mkdir(username)