added some echos/exits to not allow this to really change things, needs to be thought about/tested and put inside myth container anyway

This commit is contained in:
2025-08-16 11:15:22 +10:00
parent b6b84df27b
commit 8a1b2b7c22

View File

@@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
echo "THIS SCRIPT NEEDS TO BE REVIEWED BEFORE WE RUN IT, ALSO should be in container?"
exit -1
function fix_desc() 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" 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 ] if [ ! -f /myth/opt/storage/other-videos/AFL/$year/$input_base.mp4 ]
then 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 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 else
echo "Skip: /myth/opt/storage/other-videos/AFL/$year/$input_base.mp4 -- Already exists!" echo "Skip: /myth/opt/storage/other-videos/AFL/$year/$input_base.mp4 -- Already exists!"