Browse Source

PLAY controlled by script

Karl Hudgell 6 months ago
parent
commit
41b50d3bf9
1 changed files with 0 additions and 1 deletions
  1. 0 1
      media_change.sh

+ 0 - 1
media_change.sh

@@ -18,7 +18,6 @@ if sudo fdisk -l | grep -q "$DEVICE_NAME"; then
     echo "$(date) Running Python script with argument: '$var'"  >> $LOGFILE
     # Run the Python script and capture both stdout and stderr to the log
     /usr/bin/python3 /home/dietpi/floppy-ytube-player/main.py "$var" >> $LOGFILE 2>&1
-    /usr/bin/python3 /home/dietpi/floppy-ytube-player/main.py PLAY >> $LOGFILE 2>&1
 else
     echo "$(date): No floppy disk is present in device $DEVICE_NAME" >> $LOGFILE
     /usr/bin/systemd-mount --umount /mnt/floppy