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

Store yt urls via locally [speed fix] #450

Closed
1 task done
cameronmgj opened this issue Mar 17, 2023 · 3 comments
Closed
1 task done

Store yt urls via locally [speed fix] #450

cameronmgj opened this issue Mar 17, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@cameronmgj
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Pain

Slowwwww

Suggested solution

Locally store a file with a dictionary of song ids and 1-5 youtube urls for the song. Written to whenever a new song not present in the file is played. Only do this for liked songs and songs in playlists. Check this list when a song about to be played is stored in a playlist or liked. Potentially reduces load time for songs (which is currently ridiculous).

Also, allow selecting default sources for tracks so that no. of sources stored in dictionary can be reduced. Only search YouTube for sources if track not in likes and not in playlist, or alternative sources button clicked.

Could be an optional setting if people don't want to use more storage (although shouldn't use much)

Useful resources

No response

Additional information

Only need to query spotify on setup of program, when opened and when new song played. Only need to query yt when new song played.

@cameronmgj cameronmgj added the enhancement New feature or request label Mar 17, 2023
@cameronmgj
Copy link
Author

I would attempt this myself, and will have a look anyways but have no experience using the spotify api or flutter. :(

@KRTirtho
Copy link
Owner

KRTirtho commented Apr 8, 2023

This is already implemented and was available from v2.6.0. Spotube by default, caches all the songs played for certain period of time. Btw, this only works when Settings > Pre-download and Play is enabled

@KRTirtho
Copy link
Owner

KRTirtho commented May 6, 2023

Closing this as complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants