Deluan Quintão fb93a4cfac Merge commit from fork
* fix(server): check admin before changing a radio image

The radio image upload and delete handlers wrote or removed the file first,
and only then called Radio().Put, which refuses non-admin users. A regular
user got a 403, but the image file was already replaced or deleted.

Both /radio/{id}/image routes now use adminOnlyMiddleware, so the check runs
before the handlers touch the disk. Admin upload and delete work as before.

* fix(server): keep radio REST writes from setting the uploaded image path

The radio REST create and update wrote every field from the request body,
including uploaded_image. That value is later joined to the artwork folder
and removed on image delete or replace, so a value like ../../file pointed
at any file the server can remove.

Radio Save now drops the client id and uploaded image. Update writes only
name, stream_url and home_page_url, and also clears the uploaded image,
because put inserts the full row when the id does not exist.

model.UploadedImagePath now returns an empty path for any name that is not a
plain file name, so values already stored are harmless for radios, artists
and playlists. SetImage refuses a generated name that fails the same check,
and the artist image cleanup skips empty paths.

* refactor(server): simplify the radio image path checks

Update now has a single Put call, using slice.Filter over the allowed
columns. The two radio image routes share one adminOnlyMiddleware group.
isPlainFileName drops a redundant empty check, since filepath.IsLocal
already rejects it. The route test reuses createAuthenticatedRequest.
Comments are shorter. No behavior change.

* test(server): run the radio image specs on the real test database

Master replaced the shared repository fakes with a per-suite database,
so the specs no longer built after the rebase.
2026-11-28 12:59:28 -05:00
…
…
2026-11-28 12:59:28 -05:00
…
…
…
2026-11-28 12:59:28 -05:00
2026-11-28 12:59:28 -05:00
2026-11-28 12:59:28 -05:00
…
…
…
…
…
…
…
…
…

Navidrome logo

Navidrome Music Server  Tweet

Last Release Build Downloads Docker Pulls Dev Chat Subreddit Contributor Covenant Gurubase

Navidrome is an open source web-based music collection server and streamer. It gives you freedom to listen to your music collection from any browser or mobile device. It's like your personal Spotify!

Note: The master branch may be in an unstable or even broken state during development. Please use releases instead of the master branch in order to get a stable set of binaries.

Check out our Live Demo!

Any feedback is welcome! If you find a bug, please file a GitHub issue. If you need/want a new feature or think of any way to improve Navidrome, please share it in Discussions or join the discussion in our Subreddit. Before contributing code, please read the Contribution Guide. If you want to contribute to the project in any other way (ui/backend dev, translations, themes), please join the chat in our Discord server.

Installation

See instructions on the project's website

Cloud Hosting

Several cloud hosting providers partner with us to offer officially supported, cloud-hosted solutions. If you sign up with any of these providers, a share of the revenue funds the development of Navidrome at no additional cost for you.

Run on PikaPods
Deploy with Zenith
Deploy on ElfHosted

Features

  • Handles very large music collections
  • Streams virtually any audio format available
  • Reads and uses all your beautifully curated metadata
  • Great support for compilations (Various Artists albums) and box sets (multi-disc albums)
  • Multi-user, each user has their own play counts, playlists, favourites, etc...
  • Very low resource usage
  • Multi-platform, runs on macOS, Linux and Windows. Docker images are also provided
  • Ready to use binaries for all major platforms, including Raspberry Pi
  • Automatically monitors your library for changes, importing new files and reloading new metadata
  • Supports lyrics from sidecar .ttml, .yaml/.yml Lyricsfile, .elrc, .lrc, .srt, .txt files and embedded TTML, Enhanced LRC, LRC, SRT, and plain-text tags (via lyricspriority)
  • Themeable, modern and responsive Web interface based on Material UI
  • Compatible with all Subsonic/Madsonic/Airsonic clients
  • Transcoding on the fly. Can be set per user/player. Opus encoding is supported
  • Translated to various languages

Translations

Navidrome uses POEditor for translations, and we are always looking for more contributors

Documentation

All documentation can be found in the project's website: https://www.navidrome.org/docs. Here are some useful direct links:

Screenshots

S
Description
No description provided
Readme
162 MiB
0 Stars 1 Watchers 0 Forks
Languages
Go 81.8%
JavaScript 14.7%
Rust 2.1%
Go Template 0.5%
Shell 0.5%
Other 0.3%