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

Fetch the current years statistics from Spotify API #63

Closed
samip5 opened this issue Dec 31, 2021 · 18 comments
Closed

Fetch the current years statistics from Spotify API #63

samip5 opened this issue Dec 31, 2021 · 18 comments
Labels
enhancement New feature or request

Comments

@samip5
Copy link
Contributor

samip5 commented Dec 31, 2021

Hi,

I think there should be a way to loop though all of the months of the previous year, eg 2021, and import all of that to the database if user wants. Shouldn't that be possible?

@samip5
Copy link
Contributor Author

samip5 commented Dec 31, 2021

Or this could be implemented in a way in which your_spotify would accept an File from the history data that you get when you request your personal data from Spotify.

@Yooooomi
Copy link
Owner

This is something I talked about in #26. The Spotify privacy data is really simple and that would need your_spotify to execute search calls. This is something I can implement, but I will need time for it

@samip5
Copy link
Contributor Author

samip5 commented Dec 31, 2021

This is something I talked about in #26. The Spotify privacy data is really simple and that would need your_spotify to execute search calls. This is something I can implement, but I will need time for it

The workflow would basically mean that back-end needs to process the file/files, and then fetch the metadata for them using search? I could potentially work on this, but I would like to work on with updated deps first aka #61.
The frontend would then also need an ability to send an file to the backend?

@Yooooomi
Copy link
Owner

I highly appreciate your interest in this project. Yes it would mean having an "Upload your privacy data" in the Settings section.
Then I don't know if it should overwrite all the user songs or try to detect duplicates, but I think first decision is more stable.
Afterthat, we will need a route indicating the current progress of the import.
The most important issue is to respect Spotify request rate, to have an import feature that is as fast as possible but does not break the core.

@Yooooomi
Copy link
Owner

I requested my data to spotify and will try to work on it once acquired.

@samip5
Copy link
Contributor Author

samip5 commented Dec 31, 2021

I have done the same, aka requested the data.

@samip5
Copy link
Contributor Author

samip5 commented Jan 19, 2022

That data is quite not useful, as there is almost no way to properly search for the song just by the name of it. :(

@just5ky just5ky mentioned this issue Jan 23, 2022
9 tasks
@Yooooomi
Copy link
Owner

Yooooomi commented Feb 3, 2022

I feel like we could maybe search for the songs with the Spotify api right ? I don't know how precise we can be

@Yooooomi Yooooomi added the enhancement New feature or request label Feb 3, 2022
@samip5
Copy link
Contributor Author

samip5 commented Feb 3, 2022

I feel like we could maybe search for the songs with the Spotify api right ? I don't know how precise we can be

Yes, but that's rather difficult to match with..

@Yooooomi
Copy link
Owner

Yooooomi commented Feb 3, 2022

I feel like we can search with filters such as artists and track name. Maybe it's worth a shot.

https://developer.spotify.com/documentation/web-api/reference/#/operations/search

@Yooooomi
Copy link
Owner

@samip5 actions are running for importing from privacy 😇

@samip5
Copy link
Contributor Author

samip5 commented Feb 18, 2022

@samip5 actions are running for importing from privacy 😇

So how does one ask for extended history from Spotify?

@Yooooomi
Copy link
Owner

You're quite reactive, it tells you in the mail and in the page how to do it, you think I should include it? I feel like I should let spotify inform people for that

@samip5
Copy link
Contributor Author

samip5 commented Feb 18, 2022

You're quite reactive, it tells you in the mail and in the page how to do it, you think I should include it? I feel like I should let spotify inform people for that

It doesn't tho in the email?

Screenshot_20220218-221230-270.png

@Yooooomi
Copy link
Owner

Okay it's on the page then

@samip5
Copy link
Contributor Author

samip5 commented Feb 18, 2022

I think you should include where to find the how at least in your docs. :)

@Yooooomi
Copy link
Owner

It's in! Closing now, feel free to test the feature and give some feedback :)

@samip5
Copy link
Contributor Author

samip5 commented Feb 19, 2022

It's in! Closing now, feel free to test the feature and give some feedback :)

This is probably gonna take a while. :D
image

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