Lucas BEE 54bbbf84f4
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
Change the shows image path
From img/shows/ttXXXXX-1-1.png and img/shows/ttXXXXX-banner.png
To   img/shows/ttXXXXX/1-1.png and img/shows/ttXXXXX/banner.png

Rewrite things while we're here

Example of scripts to migrate from old path to new path:

dir="shows"
for file in "$dir"/*; do
        # Replace the first - by a / in order to get the new image path
        newfile=$(echo "$file" | sed 's/-/\//')
        # Delete everything after the first - in order to get the show path
        showpath=$(echo "$file" | sed 's/-.*//')
        [ ! -d "$showpath" ] && mkdir "$showpath"
        mv "$file" "$newfile"
done
2020-04-07 17:46:42 +02:00
..
2020-04-03 14:18:50 +02:00
2020-04-03 14:18:50 +02:00
2020-04-07 17:46:42 +02:00