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:
Martin Weinelt
2024-09-26 20:22:09 +02:00
parent d1b1ae0771
commit 2c3a10ebbd
2 changed files with 16 additions and 16 deletions
+15 -15
View File
@@ -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 %}