Commit 9b00b87d authored by Erin's avatar Erin
Browse files

Rename exclude_compilation_artists setting to match the same option in funkwhale

parent 0cb540ef
......@@ -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
......
......@@ -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)
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment