How to use Lidarr Custom Lists?
How to use Lidarr Custom Lists?
Under Settings > Import List > Advanced List, there's an option to provide a List URL for a Custom List. What format would that need to be in?
A JSON array that looks like this:
[ {"MusicBrainzId": }, {"MusicBrainzId": }, {"MusicBrainzId": }, ... ]
I use it to fetch my Last.fm and ListenBrainz recommendations for example.
3 0 ReplyThank you!
1 0 ReplySorry for the necro, but can you expand on how you pull in your ListenBrainz rec?
1 0 ReplyI have a custom import list that points to the following PHP script on a local webserver:
$API_PLAYLISTS = "https://api.listenbrainz.org/1/user/%s/playlists/createdfor"; $API_PLAYLIST = "https://api.listenbrainz.org/1/playlist/%s"; $EXT_PLAYLIST = "https://musicbrainz.org/doc/jspf#playlist"; $EXT_TRACK = "https://musicbrainz.org/doc/jspf#track"; $TMPL_PLAYLIST = "https://listenbrainz.org/playlist/%s"; $USERS = [ '<musicbrainz-username>' ]; $LISTS = [ "weekly-exploration", "weekly-jam" ]; try { $ids = []; foreach ($USERS as $user) { $lists = fetch(sprintf($API_PLAYLISTS, $user))?->playlists ?? []; foreach($lists as $list) { $meta = $list->playlist->extension->{$EXT_PLAYLIST}; $type = $meta->additional_metadata->algorithm_metadata->source_patch; if (!in_array($type, $LISTS)) continue; list($mbid) = sscanf($list->playlist->identifier, $TMPL_PLAYLIST); $songs = fetch(sprintf($API_PLAYLIST, $mbid))->playlist->track; foreach ($songs as $song) { $meta = $song->extension->{$EXT_TRACK}; foreach ($meta->additional_metadata->artists as $artist) { $ids[$artist->artist_mbid] = true; } } } } json(array_map(fn ($id) => ['MusicBrainzId' => $id], array_keys($ids))); } catch (Throwable $e) { http_response_code(500); json(['error' => $e->getMessage()]); } // -- Util -- function json($data) { header("Content-Type: application/json"); echo json_encode($data); } function fetch($url) { return json_decode(file_get_contents($url)); }
It fetches my "weekly exploration" and "weekly jam" playlists, extracts the artists and returns a list of artist IDs for Lidarr to import.
3 0 Reply
Alternately (and better): is there a way to get something like Jellyseerr but for music?
2 0 ReplyFinamp for all your local music, you will need a jellyfin server. Plexamp is pretty good as well, but you will need a Plex server.
1 0 ReplyJellyseer is like a request server for radar and sonarr, allowing people who use emby or jellyfin to make radar download a requested movie.
2 0 Reply
Ombi can do that afaik.
1 0 Reply