mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-23 10:23:33 +02:00
fix wildcards error
This commit is contained in:
parent
ca08729a87
commit
e34bc56616
1 changed files with 5 additions and 4 deletions
|
@ -28,7 +28,7 @@ funkwhale_api_get_tracks_from_channel()
|
|||
counter=0
|
||||
track_name_url="{}"
|
||||
for i in $listen_urls; do
|
||||
title=$(echo $track_list | jj results.$counter.title | sed 's/["#\.]//g')
|
||||
title=$(echo $track_list | jj results.$counter.title | sed 's/["#\.\*\?&]//g')
|
||||
track_name_url_writer=$(echo $track_name_url | jj -v $i "$title")
|
||||
track_name_url="${track_name_url_writer}"
|
||||
echo "https://$instance$i\n" >> podcast.m3u8
|
||||
|
@ -36,7 +36,7 @@ funkwhale_api_get_tracks_from_channel()
|
|||
done
|
||||
|
||||
while [ $sub_menu -eq 1 ]; do
|
||||
menu_podcast_choice=$(echo $track_list | jj -l 'results.#.title' | sed 's/["#\.]//g' | fzy)
|
||||
menu_podcast_choice=$(echo $track_list | jj -l 'results.#.title' | sed 's/["#\.\*\?&]//g' | fzy)
|
||||
play_track=$(echo $track_name_url | jj "$menu_podcast_choice")
|
||||
$default_player_command "https://$instance$play_track"
|
||||
case $(echo "Back\nMain menu" | fzy) in
|
||||
|
@ -55,10 +55,11 @@ funkwhale_get_podcasts_artists()
|
|||
count_artists=$(jj -i preload count)
|
||||
echo "$count_artists avalaible"
|
||||
artist_channels=$(jj -l -i preload 'results.#.channel.uuid' | sed 's/"//g')
|
||||
podcast_names=$(jj -l -i preload results.#.name | sed 's/\./_/g' | sed 's/"//g')
|
||||
podcast_names=$(jj -l -i preload results.#.name | sed 's/["#\.\*\?&]//g')
|
||||
temp_artists="{}"
|
||||
for i in $artist_channels; do
|
||||
name_uuid=$(echo $temp_artists | jj -v "$i" "$(jj -i preload results.$counter.name | sed 's/\./_/g' | sed 's/\"//g')")
|
||||
name=$(jj -i preload results.$counter.name | sed 's/["#\.\*\?&]//g')
|
||||
name_uuid=$(echo $temp_artists | jj -v "$i" "$name")
|
||||
temp_artists="${name_uuid}"
|
||||
counter=$(expr $counter + 1)
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue