marcderbauer / songcrawler

Crawl Spotify and Genius for all the songs of your favourite artist!
MIT License
0 stars 0 forks source link

interactive --overwrite #39

Open marcderbauer opened 1 year ago

marcderbauer commented 1 year ago

Let's say you query an album.

The program queries the album and is ready to save. At save it notices that --overwrite is not set. Currently it just cancels the whole operation and all the querying was for nothing.

It would be good if it asked the user at the terminal if they want to overwrite the existing resource (album, song,...)

marcderbauer commented 1 year ago

Keep the --overwrite flag, just make this an additional layer

marcderbauer commented 1 year ago

Adding the overwrite question dialogue should happen in Songcrawler._save_result().
The method calls all the individual save methods and also has access to Songcrawler.view.

marcderbauer commented 1 year ago

Implemented a first version of the prompt. Works for albums and playlists. Difficult to query this for an entire artists' discography. Currently that is handled within the artist class, which doesn't have access to the view.