fiso64 / slsk-batchdl

A batch downloader for Soulseek
GNU General Public License v3.0
216 stars 16 forks source link

Suggestion: Add option to remove successful files from Spotify playlist #2

Closed teubenja closed 11 months ago

teubenja commented 1 year ago

Hey! Love the program, it works really well 😄

I would love to have an option to clear successful files from Spotify playlists. I use a sort of download queue playlist, and it would be nice to not have it be cluttered with already downloaded songs. I know that the duplicate check exists, but not having them there in the first place saves on processing. Furthermore, by only deleting the successful files I can easily see which ones I either need to retry or find somewhere else.

I'm looking forward to your reaction, and again thank you for your work!

teubenja commented 1 year ago

By the way, if you like the idea I can also have a look myself if I can come up with some code :)

fiso64 commented 1 year ago

@teubenja I added --remove-from-playlist in the newest release. Does it work?

teubenja commented 1 year ago

It works, yes! It does open the Spotify OAUTH page every time you download now, even though I already gave the permission. And it does not remove songs for files that already exist in the output/music folders, which was not requested but I thought I'd mention it nonetheless. And again thank you for your work! :)))

fiso64 commented 1 year ago

@teubenja The OAUTH page has always appeared whenever an actual login was needed (i.e when downloading private playlists). I'm sure there is a cleaner way of doing this.

teubenja commented 1 year ago

For me it only appeared the first time, then I could download multiple lists without it bringing the page up. And the page that I see now is only the confirmation page, I don't need to re-login