Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
A small script to sync your play counts from last.fm back to iTunes. Supports both Windows and Mac OS X without any native dependencies. (Requires Music.app on OS X.)
Useful if you scrobble to last.fm from iTunes on multiple computers / devices and want to keep your local play counts consistent.
npx itunesfm
itunesfm <last.fm username>
Potential changes will be displayed in the console, and you will be prompted before anything is actually saved.
Play counts will only be updated if the last.fm play count is higher than your local play count.
Songs are matched using a fairly naive method:
It should be pretty easy to improve :)
In the case of ambiguities, you will be prompted for verification: this is then recorded in a matching.json
file (in /usr/local/lib/node_modules/itunesfm
, or %APPDATA%\npm\node_modules\itunesfm
on Windows) for future script runs.
In the case where songs cannot be matched, you can try modifying matching.json
manually. You'll notice that the script prints the following:
warning: could not match (..song..) (id = <identifier string>)
matching.json
maps the id
strings to last.fm
track URLs. Example of a valid mapping (id format varies by platform):
{
"211801203:-536327029":["http://www.last.fm/music/Aimer/_/Last+Stardust"],
"-1005162388:-866900706":["http://www.last.fm/music/%E3%82%84%E3%81%AA%E3%81%8E%E3%81%AA%E3%81%8E/_/%E6%98%A5%E6%93%AC%E3%81%8D"],
}
You can find the URL for a song on last.fm by checking your scrobble history and going to the track page. The format should match the example exactly (http://www.last.fm/music/<ARTIST>/_/<SONG_NAME>
).
To compile:
yarn && yarn build
Run:
yarn start
FAQs
Sync last.fm play counts with your iTunes library.
The npm package itunesfm receives a total of 3 weekly downloads. As such, itunesfm popularity was classified as not popular.
We found that itunesfm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.