Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename '.cache' #712

Open
brayo-pip opened this issue Jul 27, 2021 · 5 comments
Open

rename '.cache' #712

brayo-pip opened this issue Jul 27, 2021 · 5 comments

Comments

@brayo-pip
Copy link

The .cache filename clashes with the .cache directory found on the linux '~/home' directory. Simply renaming the .cache file to something more unique would solve this problem. I would suggest renaming it to .sp_cache or something more descriptive like spotipy_cache file.

@brayo-pip
Copy link
Author

brayo-pip commented Jul 27, 2021

if I get the green light I can open a PR and fix it by the weekend

@stephanebruckert
Copy link
Member

stephanebruckert commented Jul 28, 2021

As this is a backward-incompatible change, it would be fine for the v3 branch

See #652

@Peter-Schorn
Copy link
Contributor

It should also be noted that you can specify whatever cache path you want if the default conflicts with other files.

@clemwo
Copy link

clemwo commented Feb 22, 2022

It should also be noted that you can specify whatever cache path you want if the default conflicts with other files.

How do you do that?

@Peter-Schorn
Copy link
Contributor

Since the last post on this thread, the API has changed somewhat. Here's how to specify the cache path—that is, the file in which the authorization information is stored—when creating an instance of Spotify:

spotify = Spotify(
    auth_manager=SpotifyOAuth(
        cache_handler=CacheFileHandler(cache_path="/path/to/cache")
    )
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants