Games: osu! and Beat Saber (preview)
The Games category of Which service? works both ways. As a source, pick the game, pick a list, and sync it to a playlist on any service Trackhop writes to. As a destination, a playlist from any service becomes something you can play in the game (see Playlists made for a game). Nothing from the game is downloaded: no beatmap, no map, no audio. As a source only the artist and title are read, matched on your service like any other song (game data has no ISRC, so matching goes by title and artist).
In every build: the Android app (Google Play included), Desktop and Docker. Both are marked preview: they use official APIs and work, but they have seen less use than the other connectors.
osu!
Official API v2. Each person uses their own OAuth application, as with Spotify’s own key:
- On osu! open Settings → OAuth and create a new application (any name; the callback address is not used). Copy its Client ID and Client secret.
- In Trackhop add osu! under Games. Enter your osu! username (or user id), and in the
second field the Client ID and the secret as
id:secret.
Trackhop asks only for the public scope (the client credentials flow): it never signs in as you
and reads only what is public on your profile. Lists:
- Favourite beatmaps: the beatmapsets you favourited.
- Most played: your most played beatmaps, one song per beatmapset.
- Featured Artists: osu!’s licensed Featured Artists beatmapsets, most played first (the first 250). This list uses the same filter the osu! website’s search uses; it is not part of the published API reference, so if osu! changes it the list can come back empty.
Titles are cleaned at the source: “(TV Size)”, “[Cut Ver.]”, “(Nightcore Mix)”, “-TV Size-“ and similar game labels are dropped, and “A feat. B” or “A vs. B” become separate artists. osu! allows 60 requests a minute; Trackhop spaces its calls a second apart.
Beat Saber
Read from the public APIs of ScoreSaber and BeatLeader: no account, no key.
- Add Beat Saber under Games.
- Paste your profile link on either site, or the player id (the long number in the link).
Lists: top plays and latest plays, from each site. A map played on several difficulties is one song. The song’s author is the artist; a custom map with no author has none, and the matcher goes by title. Only titles are read: Trackhop does not download maps.
Playlists made for a game
Choose a sync’s destination osu! or Beat Saber and a playlist from any service is looked up in the game’s catalogue, song by song, matched by title and artist like every other destination. A song with no map is reported as not found, as usual.
First pick the games folder once: on the phone, on the osu! or Beat Saber account page
(Games folder, the system’s folder picker: the phone, Syncthing, Nextcloud, an SMB share…); on a
Docker server or Desktop, the folder of the server in the same page, or
gamesFolder in the settings (with Docker, mount a volume for it). Without it the sync stops at
once and says so. Each playlist is rewritten after every sync that changes it, a song is added once,
and a file Trackhop did not make is never overwritten: its name gets “(2)”.
- Beat Saber: each song is searched on BeatSaver (public API, no account). Among the maps
whose song name and author match best, a ranked or curated one wins, then the best rated. The
playlist is
<name>.bplist(JSON: title, author Trackhop, and each song’s hash, key and name), which PlaylistManager and the game’s mods read; the maps are downloaded from there, in the game. Several results of the same score go to the first: that is the ranked or curated one, then the highest rated. - osu!: each song is searched among the beatmapsets with the same token as the source (the
publicscope is enough), ranked, approved and loved sets first, then the most favourited. osu! has no way to be handed a list of beatmaps by a program, so two files are written:<name>.collection.db, a collection of that name in osu!stable’s format holding every difficulty of the chosen sets, and<name>.osu.txt, the beatmapset links, one per line, to download the maps with. The collection file is never your owncollection.db: merge it in with a tool such as Collection Manager, or copy it over thecollection.dbof an osu! folder you do not mind replacing (stable reads it when the game starts; lazer imports collections from stable). A beatmap shows in a collection only once downloaded.
Both are preview. The songs of a playlist already made are read back from what Trackhop remembers, not from the files.
Clone Hero and YARG songs (preview)
A source only. Add Clone Hero under Games and pick your songs folder once (on the phone
the system’s folder picker, on Docker or Desktop a folder of the server, with
Docker a mounted volume). Trackhop reads each song.ini below it (name, artist, album, song_length)
and makes the playlist Clone Hero songs, plus one per folder of the first level (a setlist), to
sync to a streaming service. Charts and audio are never touched, and the folder is never written to.
A song with no name is skipped; rich-text tags such as <color=...> are dropped.
Radio for Euro Truck Simulator 2 and American Truck Simulator
These games read internet radio from live_streams.sii. On the page of a Radio connector
(Accounts on the phone, the connector’s page on the server) pick the games folder, then
Write live_streams.sii: your Trackhop radio stations are written as
stream_data[n]: "URL|Name|Genre|Language|Bitrate|Favorite" entries. Copy the file to
Documents/Euro Truck Simulator 2/ or Documents/American Truck Simulator/. An existing file is
never overwritten: the new one is live_streams (2).sii. The games play http streams only
(not https). Music itself cannot be synced to these games: they play local audio files.
Not (yet) done
- Clone Hero and YARG setlist files (
.setlist, a binary file of chart hashes): not written. - A link to the map on BeatSaver for a song read from ScoreSaber: it only gives the map’s hash.
- osu!’s own
.osdb(Collection Manager’s format) and writing straight into yourcollection.db. - Fortnite Festival, game radios and soundtracks: planned separately.
See also: Sync playlists.