A decentralized music tracking and discovery platform built on AT Protocol 馃幍
rocksky.app
spotify
atproto
lastfm
musicbrainz
scrobbling
listenbrainz
1import { matchTrack } from "lib/matchTrack";
2import { publishScrobble } from "scrobble";
3
4export async function scrobble(
5 track: string,
6 artist: string,
7 { timestamp, dryRun },
8) {
9 const match = await matchTrack(track, artist);
10
11 if (!match) {
12 process.exit(1);
13 }
14
15 const success = await publishScrobble(match, timestamp, dryRun);
16
17 if (!success) {
18 process.exit(1);
19 }
20
21 process.exit(0);
22}