From 3ed5abe8e1ff86906dc1265f7114a35b15497475 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Mon, 18 Jul 2022 10:51:37 +0300 Subject: [PATCH] Formated playlist and fid comment --- funkwhale-cli.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/funkwhale-cli.sh b/funkwhale-cli.sh index 768699a..2324571 100755 --- a/funkwhale-cli.sh +++ b/funkwhale-cli.sh @@ -376,6 +376,7 @@ funkwhale_pseudofs_load() get_tracks_uuid_by_artist_id=$(echo "$tracks" | jj -l "results.#[artist.id=$idartist]#.uploads.0.uuid" | delq) for track in $get_tracks_uuid_by_artist_id; do + fid_url=$(echo "$tracks" | jj "results.#[uploads.0.uuid="$track"].fid") artist_name=$(echo "$tracks" | jj "results.#[uploads.0.uuid="$track"].artist.name") album_name=$(echo "$tracks" | jj "results.#[uploads.0.uuid="$track"].album.title") track_name=$(echo "$tracks" | jj "results.#[uploads.0.uuid="$track"].title") @@ -389,7 +390,7 @@ funkwhale_pseudofs_load() if [ -n "$exists_test" ]; then skip_count=$(expr $skip_count + 1) else - echo "#EXTINF:$duration, "$idartist"_$track_filename\n$full_url" >> "fwfs_$instance/$idartist/playlist.m3u8" + echo "#EXTINF:$duration, "$idartist"_$track_filename\n#$fid_url\n$full_url\n" >> "fwfs_$instance/$idartist/playlist.m3u8" fi tracks_counter_watch=$(expr $tracks_counter_watch + 1) echo "current: $tracks_counter_watch skipped: $skip_count total: $count_all_tracks"