fid more uniq for searching duplicates

This commit is contained in:
localhost_frssoft 2022-07-19 00:31:51 +03:00
parent 67911414a2
commit 97ec7ce352

View File

@ -370,7 +370,7 @@ funkwhale_pseudofs_load()
listen_url=$(echo "$tracks" | jj "results.#[uploads.0.uuid="$track"].uploads.0.listen_url")
full_url=$(echo $listen_url | delq | sed "s/^/https:\/\/$instance/ ; s/$/\&token=$listen_token\&to=ogg/")
echo "adding "$idartist"_$track_filename"
exists_test=$(grep -F ""$idartist"_$track_filename" "fwfs_$instance/$idartist/playlist.m3u8")
exists_test=$(grep -F "$fid_url" "fwfs_$instance/$idartist/playlist.m3u8")
if [ -n "$exists_test" ]; then
skip_count=$(expr $skip_count + 1)
else