mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-25 11:01:27 +00:00
Added names for built-in radios FunkWhale
This commit is contained in:
parent
b4998074b2
commit
baa7974641
|
@ -38,9 +38,9 @@ def list_radios():
|
||||||
|
|
||||||
selected = fzf.prompt(view, f'--header \'Found {count} radios\' --read0', delimiter="\0")[0].split('.', 1)
|
selected = fzf.prompt(view, f'--header \'Found {count} radios\' --read0', delimiter="\0")[0].split('.', 1)
|
||||||
if 'Favourites' in selected:
|
if 'Favourites' in selected:
|
||||||
radio_load(id_radio, 'favorites')
|
radio_load(id_radio, 'favorites', name='your favorites tracks')
|
||||||
elif 'Random' in selected:
|
elif 'Random' in selected:
|
||||||
radio_load(id_radio, 'random')
|
radio_load(id_radio, 'random', name='totally random')
|
||||||
elif 'Libraries' in selected:
|
elif 'Libraries' in selected:
|
||||||
id_radio, type_radio, name_radio, related_obj = libraries()
|
id_radio, type_radio, name_radio, related_obj = libraries()
|
||||||
radio_load(id_radio, type_radio, name_radio, related_obj)
|
radio_load(id_radio, type_radio, name_radio, related_obj)
|
||||||
|
@ -58,9 +58,9 @@ def list_radios():
|
||||||
lib_addr = input()
|
lib_addr = input()
|
||||||
radio_load(None, 'actor-content', lib_addr, lib_addr)
|
radio_load(None, 'actor-content', lib_addr, lib_addr)
|
||||||
elif 'Recently Added' in selected:
|
elif 'Recently Added' in selected:
|
||||||
radio_load(id_radio, 'recently-added')
|
radio_load(id_radio, 'recently-added', name='Newest content on the network')
|
||||||
elif 'Less listened' in selected:
|
elif 'Less listened' in selected:
|
||||||
radio_load(id_radio, 'less-listened')
|
radio_load(id_radio, 'less-listened', name="Less listened tracks")
|
||||||
else:
|
else:
|
||||||
id_selected = selected[0]
|
id_selected = selected[0]
|
||||||
id_radio = results[int(id_selected)].get('id')
|
id_radio = results[int(id_selected)].get('id')
|
||||||
|
|
Loading…
Reference in a new issue