From e34bc566163f9f08617a243cbaa6318a4870895e Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Sun, 3 Apr 2022 14:04:09 +0300 Subject: [PATCH] fix wildcards error --- funkwhale-cli.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/funkwhale-cli.sh b/funkwhale-cli.sh index 0cc0676..7302fc2 100755 --- a/funkwhale-cli.sh +++ b/funkwhale-cli.sh @@ -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