music-assistant: fix evaluation of provider packages
When provider packages have no dependencies we still need to make them a function, as to have a generic interface to transform these attributes into python packages of the passed package set.
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
{
|
||||
version = "2.2.3";
|
||||
providers = {
|
||||
airplay = [
|
||||
airplay = ps: [
|
||||
];
|
||||
apple_music = [
|
||||
apple_music = ps: [
|
||||
]; # missing pywidevine
|
||||
builtin = [
|
||||
builtin = ps: [
|
||||
];
|
||||
chromecast = ps: with ps; [
|
||||
pychromecast
|
||||
@@ -18,11 +18,11 @@
|
||||
dlna = ps: with ps; [
|
||||
async-upnp-client
|
||||
];
|
||||
fanarttv = [
|
||||
fanarttv = ps: [
|
||||
];
|
||||
filesystem_local = [
|
||||
filesystem_local = ps: [
|
||||
];
|
||||
filesystem_smb = [
|
||||
filesystem_smb = ps: [
|
||||
];
|
||||
fully_kiosk = ps: with ps; [
|
||||
python-fullykiosk
|
||||
@@ -30,12 +30,12 @@
|
||||
hass = ps: with ps; [
|
||||
hass-client
|
||||
];
|
||||
hass_players = [
|
||||
hass_players = ps: [
|
||||
];
|
||||
jellyfin = ps: with ps; [
|
||||
aiojellyfin
|
||||
];
|
||||
musicbrainz = [
|
||||
musicbrainz = ps: [
|
||||
];
|
||||
opensubsonic = ps: with ps; [
|
||||
py-opensonic
|
||||
@@ -43,7 +43,7 @@
|
||||
plex = ps: with ps; [
|
||||
plexapi
|
||||
];
|
||||
qobuz = [
|
||||
qobuz = ps: [
|
||||
];
|
||||
radiobrowser = ps: with ps; [
|
||||
radios
|
||||
@@ -60,23 +60,23 @@
|
||||
soco
|
||||
sonos-websocket
|
||||
];
|
||||
soundcloud = [
|
||||
soundcloud = ps: [
|
||||
]; # missing soundcloudpy
|
||||
spotify = ps: with ps; [
|
||||
pkce
|
||||
];
|
||||
template_player_provider = [
|
||||
template_player_provider = ps: [
|
||||
];
|
||||
test = [
|
||||
test = ps: [
|
||||
];
|
||||
theaudiodb = [
|
||||
theaudiodb = ps: [
|
||||
];
|
||||
tidal = ps: with ps; [
|
||||
tidalapi
|
||||
];
|
||||
tunein = [
|
||||
tunein = ps: [
|
||||
];
|
||||
ugp = [
|
||||
ugp = ps: [
|
||||
];
|
||||
ytmusic = ps: with ps; [
|
||||
yt-dlp
|
||||
|
||||
@@ -24,7 +24,7 @@ TEMPLATE = """# Do not edit manually, run ./update-providers.py
|
||||
version = "{{ version }}";
|
||||
providers = {
|
||||
{%- for provider in providers | sort(attribute='domain') %}
|
||||
{{ provider.domain }} = {% if provider.available %}ps: with ps; {% endif %}[
|
||||
{{ provider.domain }} = {% if provider.available %}ps: with ps;{% else %}ps:{% endif %} [
|
||||
{%- for requirement in provider.available | sort %}
|
||||
{{ requirement }}
|
||||
{%- endfor %}
|
||||
|
||||
Reference in New Issue
Block a user