Fix condition for .noplay file

This commit is contained in:
localhost_frssoft 2022-10-09 16:47:11 +03:00
parent 7e72538f26
commit a336656398

View File

@ -360,7 +360,7 @@ funkwhale_pseudofs_load()
next_check=$(echo "$tracks" | jj next)
for idartist in $(echo "$tracks" | jj -l 'results.#.artist.id' | delq | sort -u); do
mkdir -p "fwfs_$instance/$idartist"
if [ ! -f "fwfs_$instance/$idartist/playlist.m3u8" && ! -f "fwfs_$instance/$idartist/playlist.m3u8.noplay" ]; then
if [ ! -f "fwfs_$instance/$idartist/playlist.m3u8" ] && [ ! -f "fwfs_$instance/$idartist/playlist.m3u8.noplay" ]; then
echo '#EXTM3U' > "fwfs_$instance/$idartist/playlist.m3u8"
fi