Formated playlist and fid comment

This commit is contained in:
localhost_frssoft 2022-07-18 10:51:37 +03:00
parent e9bf201065
commit 3ed5abe8e1

View file

@ -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) 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 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") artist_name=$(echo "$tracks" | jj "results.#[uploads.0.uuid="$track"].artist.name")
album_name=$(echo "$tracks" | jj "results.#[uploads.0.uuid="$track"].album.title") album_name=$(echo "$tracks" | jj "results.#[uploads.0.uuid="$track"].album.title")
track_name=$(echo "$tracks" | jj "results.#[uploads.0.uuid="$track"].title") track_name=$(echo "$tracks" | jj "results.#[uploads.0.uuid="$track"].title")
@ -389,7 +390,7 @@ funkwhale_pseudofs_load()
if [ -n "$exists_test" ]; then if [ -n "$exists_test" ]; then
skip_count=$(expr $skip_count + 1) skip_count=$(expr $skip_count + 1)
else 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 fi
tracks_counter_watch=$(expr $tracks_counter_watch + 1) tracks_counter_watch=$(expr $tracks_counter_watch + 1)
echo "current: $tracks_counter_watch skipped: $skip_count total: $count_all_tracks" echo "current: $tracks_counter_watch skipped: $skip_count total: $count_all_tracks"