Skip to content

Executable application to delete duplicated scrobbles from Last.fm library. Stack: Gradle, Kotlin, Selenium

Notifications You must be signed in to change notification settings

unrec/lastfm-duplicates-remover

Repository files navigation

lastfm-duplicates-remover

Finding duplicates

At first, it makes sense to find if there are any duplicates in the library at all. You can use lastfm-tracks-dumper or this site. If you don't have too much duplicates, it's better to delete it manually by navigating the pages from the generated .csv file.

Preconditions

The app uses Selenium andChrome browser for deleting Last.fm tracks as currently there is no API for this operation. Update your Chrome to the latest version and install corresponding WebDriver. Deleted tracks can be seen as if they were deleted by you manually:

Usage

Run the application .jar file and provide next parameters:

  • Last.fm username (--user)
  • Last.fm API password (--password) (will not be stored or used somewhere else)
java -jar lastfm-duplicates-remover.jar --user %lastfm_user% --password %lastfm_password% --start-page 1818

All deleted tracks can be found in deleted_scrobbles.log file:

2023-03-05 09:16:09.875 - Processing page 1502
2023-03-05 09:16:15.494 - Duplicate removed: ScrobbledTrack(artist=Peppino Gagliardi, title=Che Vuole Questa Musica Stasera, timestamp=1472724612)
2023-03-05 09:16:15.494 - Duplicate removed: ScrobbledTrack(artist=Bandini, title=L' Estasi Dell'oro, timestamp=1472724119)
2023-03-05 09:16:15.494 - Duplicate removed: ScrobbledTrack(artist=Imany, title=Don't Be So Shy (Filatov & Karas Remix), timestamp=1472723298)

About

Executable application to delete duplicated scrobbles from Last.fm library. Stack: Gradle, Kotlin, Selenium

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages