Closed tehkillerbee closed 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"
@kingosticks Thanks for the heads-up, thats a cleaner solution. I will update it in the next version.
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.