mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-27 17:43:02 +00:00
implement transcode switcher
This commit is contained in:
parent
bffd430fc8
commit
e9bf201065
@ -405,6 +405,17 @@ funkwhale_pseudofs_load()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
funkwhale_pseudofs_transcode_switch()
|
||||||
|
{
|
||||||
|
echo "Transcode to"
|
||||||
|
transcode_ch=$(echo "none\nogg\nmp3" | fzy)
|
||||||
|
if [ "$transcode_ch" = 'none' ]; then
|
||||||
|
find "fwfs_$instance" -type f -exec sed -i 's/to=.*/to=/' {} +
|
||||||
|
else
|
||||||
|
find "fwfs_$instance" -type f -exec sed -i "s/to=.*/to=$transcode_ch/" {} +
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
trackspls='Tracks'
|
trackspls='Tracks'
|
||||||
albumsmenu='Albums'
|
albumsmenu='Albums'
|
||||||
artistmenu='Artists'
|
artistmenu='Artists'
|
||||||
|
Loading…
Reference in New Issue
Block a user