diff --git a/mopidy_funkwhale/__init__.py b/mopidy_funkwhale/__init__.py index 389067c..70eb1b6 100644 --- a/mopidy_funkwhale/__init__.py +++ b/mopidy_funkwhale/__init__.py @@ -38,7 +38,7 @@ class Extension(mopidy.ext.Extension): schema["cache_duration"] = mopidy.config.Integer(optional=True) schema["verify_cert"] = mopidy.config.Boolean(optional=True) - schema["show_track_artists"] = mopidy.config.Boolean(optional=True) + schema["exclude_compilation_artists"] = mopidy.config.Boolean(optional=True) return schema diff --git a/mopidy_funkwhale/client.py b/mopidy_funkwhale/client.py index a9813bb..9f1b949 100644 --- a/mopidy_funkwhale/client.py +++ b/mopidy_funkwhale/client.py @@ -97,7 +97,7 @@ class APIClient(object): self.username = self.config["funkwhale"]["username"] self.session.verify = config["funkwhale"].get("verify_cert", True) - self.show_track_artists = self.config["funkwhale"].get("show_track_artists", False) + self.exclude_compilation_artists = self.config["funkwhale"].get("exclude_compilation_artists", True) @property def use_oauth(self): @@ -134,7 +134,7 @@ class APIClient(object): return response.json() def list_artists(self, filters): - if not self.show_track_artists: + if self.exclude_compilation_artists: filters = {"has_albums": "true", **filters} response = self.session.get("artists/", params=filters) diff --git a/mopidy_funkwhale/ext.conf b/mopidy_funkwhale/ext.conf index f02f40f..beac33c 100644 --- a/mopidy_funkwhale/ext.conf +++ b/mopidy_funkwhale/ext.conf @@ -28,6 +28,6 @@ cache_duration = 600 # Control HTTPS certificate verification. Set it to false if you're using a self-signed certificate verify_cert = true -# Show all artists when browsing, even those without albums (e.g. per-track -# credits or collaborations). Set this to false to only show album artists -show_track_artists = false \ No newline at end of file +# Hide artists that only have track credits when browsing artists. +# Set this to false to show all artists. +exclude_compilation_artists = true \ No newline at end of file