As of now I only got it working with the first 200 tracks, this means if your errored tracks are further than that or if some of them are in the 200 and some are not, you'll only be able to amend the first 200, and will not be able to use the bulk delete feature, as the ones past the first 200 will not have been amended...
- Python (tested on 3.11.9).
pip install pylast
- Last.FM API credentials (Can obtain for free here).
Steps:
- Download
scrobbleAmender.py
and.env.example
. - Replace the example trackReplacements object at the top of
scrobbleAmender.py
with your search and replacements. - Rename the
.env.example
to.env
and make sure it's in the same folder. - Replace the feilds in your
.env
file with your API credentials. - Open your terminal of choice and run
python "/path/to/scrobbleAmender.py"
. - It will ask you to authenticate your account, and then it should start running.
IMPORTANT after it runs go to your Last.FM profile select the original (now amended) track > Three Dots > "Go to track in library" Click the "Delete track from library" button. This will delete the original (now amended) tracks from your library and Scrobble history.