fix: replaced empty album to index and duration -1

This commit is contained in:
localhost_frssoft 2022-03-30 19:08:26 +03:00
parent a7edda6df2
commit ae6dd9f069

View File

@ -28,7 +28,7 @@ load_tracks_to_playlist()
counter_titles=0 counter_titles=0
for i in $(funkwhale_api_get_tracks $1); do for i in $(funkwhale_api_get_tracks $1); do
title=$(cat preload | jj results."$counter_titles".title) title=$(cat preload | jj results."$counter_titles".title)
echo "#EXTINF:#,$title" >> playlist.m3u8 echo "#EXTINF:-1, $counter_titles - $title" >> playlist.m3u8
counter_titles=$(expr $counter_titles + 1) counter_titles=$(expr $counter_titles + 1)
echo "https://$instance$i\n" >> playlist.m3u8 echo "https://$instance$i\n" >> playlist.m3u8
done done