mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 15:59:21 +02:00
Fixes in podcasts
This commit is contained in:
parent
eefc247b64
commit
ce9575dac5
|
@ -36,17 +36,20 @@ funkwhale_get_podcasts_artists()
|
||||||
counter=0
|
counter=0
|
||||||
count_artists=$(jj -i preload count)
|
count_artists=$(jj -i preload count)
|
||||||
echo "$count_artists avalaible"
|
echo "$count_artists avalaible"
|
||||||
artist_channels=$(jj -i preload -l 'results.#.channel.uuid' | sed 's/"//g')
|
artist_channels=$(jj -l -i preload 'results.#.channel.uuid' | sed 's/"//g')
|
||||||
artist_names=$(mktemp)
|
podcast_names=$(jj -l -i preload results.#.name | sed 's/\./_/g' | sed 's/"//g')
|
||||||
temp_artists=$(mktemp)
|
temp_artists=$(mktemp)
|
||||||
for i in $artist_channels; do
|
for i in $artist_channels; do
|
||||||
jj -i preload results."$counter".name | sed 's/\./_/g' >> $artist_names
|
jj -i $temp_artists -v "$i" -o $temp_artists "$(jj -i preload results.$counter.name | sed 's/\./_/g' | sed 's/\"//g')"
|
||||||
jj -i $temp_artists -v "$i" -o $temp_artists "$(jj -i preload results.$counter.name | sed 's/\./_/g')"
|
|
||||||
counter=$(expr $counter + 1)
|
counter=$(expr $counter + 1)
|
||||||
done
|
done
|
||||||
menu_artist_choice=$(cat $artist_names | fzy)
|
menu_podcast_choice=$(echo $podcast_names | fzy)
|
||||||
channel_uuid=$(jj -i $temp_artists "$menu_artist_choice")
|
channel_uuid=$(jj -i $temp_artists "$menu_podcast_choice")
|
||||||
funkwhale_api_get_tracks_from_channel $channel_uuid
|
if [ -z $channel_uuid ]; then
|
||||||
|
echo 'Error when loading podcast'
|
||||||
|
else
|
||||||
|
funkwhale_api_get_tracks_from_channel $channel_uuid
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
load_tracks_to_playlist()
|
load_tracks_to_playlist()
|
||||||
|
|
Loading…
Reference in New Issue