tehkillerbee / mopidy-tidal

Tidal Backend plugin for Mopidy
Apache License 2.0
93 stars 28 forks source link

Changed tidal-oauth output directory #45

Closed tehkillerbee closed 2 years ago

tehkillerbee commented 2 years ago

Determine the correct mopidy data_dir from the configuration file, instead of using HOME env. variable. This should make sure that the user has the correct permissions to write the tidal-oauth json file.

Updated setup.py to use latest tidalapi, as this version updates the API key.

kingosticks commented 2 years ago

Extension.get_data_dir exists for this purpose. Something like:

from mopidy_tidal import Extension

oauth_file = Extension.get_data_dir(self.config) / "tidal-oauth.json"
tehkillerbee commented 2 years ago

@kingosticks Thanks for the heads-up, thats a cleaner solution. I will update it in the next version.