Skip to content

Commit

Permalink
Update create_song_buttons.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Axlfc authored Sep 30, 2024
1 parent b93b053 commit 8e0a445
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion create_song_buttons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ i=0
for album in $(ls | sort -h); do
echo
echo "#### ${album} <a name=${album_tags[i]}></a>" >> "${buttons_file}"
echo "<details>" >> "${buttons_file}"
echo "<summary>Track List</summary>" >> "${buttons_file}"

echo "[![${album}](https://img.youtube.com/vi/${video_IDs[$i]}/0.jpg)](https://www.youtube.com/watch?v=${video_IDs[$i]} \"${album}\")" >> "${buttons_file}"
cd "${album}"
i=$((i+1))
for song in $(ls | sort -h); do
Expand All @@ -83,5 +84,8 @@ function showButton${song_tag}() {
echo >> "${buttons_file}"
cd ..
done
echo "</details>" >> "${buttons_file}"
echo "[![${album}](https://img.youtube.com/vi/${video_IDs[$i]}/0.jpg)](https://www.youtube.com/watch?v=${video_IDs[$i]} \"${album}\")" >> "${buttons_file}"


cd "${current_directory}"

0 comments on commit 8e0a445

Please sign in to comment.