dtcrout / spotitude

Yet another Spotify user analytics visualizer
MIT License
19 stars 7 forks source link

Modify visualization.py to write playlist URL to file #10

Closed dtcrout closed 5 years ago

dtcrout commented 5 years ago

There is currently an enhancement for generating a playlist based on the top 25 tracks returned to the user. In that class will exist a url to the playlist. I'll leave this up to the person working on this task, but the URL should be rendered in the visualization.

HAKSOAT commented 5 years ago

Hello, all this task needs is to have the URL added to the visualization, right?

nicofilliol commented 5 years ago

Instead of just directly creating the playlist without user approval and displaying the URL in the visualisation, something like Eel could be used to open the index.html and to establish a "conncection" between the frontend and python. I just played around with it a bit and I was able to add a Create playlist button to the HTML which would trigger a function in the python script which in turn then makes use of the playlist class to create the spotitude playlist and open the URL in a new window. @dtcrout What do you think of this idea?

dtcrout commented 5 years ago

@nicofilliol, you bring up a good point. The playlist URL will only be generated if a user chooses to create a playlist, therefore a mechanism should exist to run the command.

If you want to create this functionality using Eel, that would be fantastic!

aditj commented 5 years ago

Is this issue assigned or can I work on it?

nicofilliol commented 5 years ago

@aditj I would actually like to give this a go since I already have a working solution and just need to polish it a bit.

aditj commented 5 years ago

@aditj I would actually like to give this a go since I already have a working solution and just need to polish it a bit.

No Problem @nicofilliol :)