spotDL/spotify-downloader

Make --archive save the links to the downloaded songs as soon as the songs are downloaded

Aperta

#2196 aperta il 28 set 2024

 (10 commenti) (0 reazioni) (0 assegnatari)Python (1418 fork)batch import
Feature RequestGood First Issue

Metriche repository

Star
 (14.703 stelle)
Metriche merge PR
 (Merge medio 38g 15h) (1 PR mergiata in 30 g)

Descrizione

Requested Feature

If I run spotdl download https://link-to-a-playlist --archive my-archive-path it seems that spotdl only writes the downloaded files to the archive once the entire source has been parsed through and downloaded. So imagine this playlist has 500 songs. If spotdl successfully downloads the first 499 songs and has an issue on the last song and crashes, then the archive file will be empty. I use the archive file to keep, well, an archive of the downloaded songs. In this case, there will be 499 songs that are downloaded but the archive doesn’t reflect that fact.

Would it be possible to change --archive so it writes down the downloaded songs as soon as they are successfully downloaded?

Possible implementation

No response

Guida contributor