From 8a1b2b7c220ca779d9aaa685b98f731a09e92a72 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 16 Aug 2025 11:15:22 +1000 Subject: [PATCH] added some echos/exits to not allow this to really change things, needs to be thought about/tested and put inside myth container anyway --- convert_myth_afl_vid_to_plex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/convert_myth_afl_vid_to_plex b/convert_myth_afl_vid_to_plex index 4cc8da9..84d741d 100755 --- a/convert_myth_afl_vid_to_plex +++ b/convert_myth_afl_vid_to_plex @@ -1,5 +1,7 @@ #!/bin/bash +echo "THIS SCRIPT NEEDS TO BE REVIEWED BEFORE WE RUN IT, ALSO should be in container?" +exit -1 function fix_desc() { @@ -113,6 +115,8 @@ do echo "ffmpeg -i $input_filename -codec copy -metadata title=\"$title\" -metadata description=\"$description\" -metadata album=\"$category\" -metadata date=\"$date\" /myth/opt/storage/other-videos/AFL/$year/$input_base.mp4" if [ ! -f /myth/opt/storage/other-videos/AFL/$year/$input_base.mp4 ] then + echo "REALLY WOULD HAVE DONE SOMETHING" + exit 9 ffmpeg -i $input_filename -codec copy -metadata title="$title" -metadata description="$description" -metadata album="$category" -metadata date="$date" /myth/opt/storage/other-videos/AFL/$year/$input_base.mp4 else echo "Skip: /myth/opt/storage/other-videos/AFL/$year/$input_base.mp4 -- Already exists!"