Skip to content

Commit

Permalink
Convert auth_json from String to Path
Browse files Browse the repository at this point in the history
The practical difference is that after this the "standard" path expansions
work (see
https://github.com/mopidy/mopidy/blob/3ecbc988d7965a391a43297c16b295b4190043f3/mopidy/config/types.py#L422
). These in turn allow sharing a config file between users that have
different names and home dirs.
  • Loading branch information
Arto Jantunen committed Mar 7, 2022
1 parent 5732d7e commit 294a968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mopidy_ytmusic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_default_config(self):

def get_config_schema(self):
schema = super().get_config_schema()
schema["auth_json"] = config.String(optional=True)
schema["auth_json"] = config.Path(optional=True)
schema["auto_playlist_refresh"] = config.Integer(
minimum=0, optional=True
)
Expand Down

0 comments on commit 294a968

Please sign in to comment.