Ampache logo

Ampache

Web based audio/video streaming application and file manager

Alternative to: spotify, apple music, youtube music


About Versions (100)

8.0.0

2026-08-11

8.0.0

php8.5 3ae3a235247076ef6c457be293d5c0f7 ./ampache-8.0.0_php8.5.zip 3ae3a235247076ef6c457be293d5c0f7 ./ampache-8.0.0_all_php8.5.zip ad8d4f4d019dd57ef98da4b8fa1f679c ./ampache-8.0.0_all_php8.5_squashed.zip 29771b14274752e5e8361a615899773b ./ampache-8.0.0_all_php8.5_client.zip

UNSUPPORTED Code only release. (Requires composer and npm install) f20a0a5ea76581a43380d909f88f543d ./ampache-8.0.0.zip f20a0a5ea76581a43380d909f88f543d ./ampache-8.0.0_public.zip 3abfa0996cf51d96fb3088178f3adb30 ./ampache-8.0.0_squashed.zip 82bfea25b45325ff26d9e2c77c96c337 ./ampache-8.0.0_client.zip

Zip Version information

If you aren’t familiar which the project make sure you know which zip you need to download.

ampache-8.0.0.zip is a copy of ampache-8.0.0_public.zip and ampache-8.0.0_php8.5.zip is a copy of ampache-8.0.0_all_php8.5.zip.

The shorter names become the default for the public structure in Ampache9; the _public and _all names will be kept for the rest of the 8.x series.

Ampache 8.0.0

You can downgrade to Ampache7 if you try this out and have issues, using the cli (bin/cli admin:updateDatabase -e).

NOTE The /rest rewrite rules changed a lot in this release. Use php bin/installer htaccess -e to update your htaccess files (or the Write buttons on the install/update page). The rest/.htaccess configured? check reports a file left over from an older release, so it will tell you when this is needed.

  • Ampache 8 requires PHP 8.5+
  • This version adds a new Folder domain which functions as a virtual filesystem browsing layer over catalog files.
  • A very major PHPStan level 8 / Rector / PER-CS3x0 hardening pass across the code.

Added (8.0.0)

  • Translations 2026-08-11
  • OpenID Connect (OIDC) login
    • New oidc auth method; add it to auth_methods to enable it (keep mysql so local accounts can still log in)
    • Configure a single provider (Keycloak, Entra ID, Authentik, Google, Okta, …) with the new oidc_* config keys
    • Authorization code flow with PKCE (S256); users are matched by the oidc_username_claim claim and provisioned through the existing auto_create / auto_user / external_auto_update settings, exactly like LDAP
    • The redirect uri to register with the provider is <web_path>/oidc/; it carries no query string and needs no webserver configuration
    • Point logout_redirect at the provider’s end_session_endpoint to sign out of the provider as well
  • Folder Browsing
    • Folder domain/model for browsing the catalog as a virtual folder tree
    • New show_folder preference to show/hide the “Folders” link in the sidebar
  • Play history consolidation
    • New stats_consolidate_threshold config option; the number of days of detailed play history to keep in object_count (0, the default, disables consolidation)
    • New cleanup:consolidateStats CLI command aggregates older plays into object_count_summary and moves the detail rows to object_count_archive; dry-run unless -e is given
    • New cleanup:restoreStats CLI command puts the archived detail back and regenerates the album, album_disk, artist and podcast rows from it
    • Nothing is discarded: media rows keep their exact date, agent and location for streams, skips and downloads, so a consolidate/restore cycle is lossless
    • Play counts, played flags and streamed data size stay exact while consolidated; period-based statistics (trending, recent, graphs, Last.fm export), smart playlist play-history rules and play count sorting only see the retained window
    • Example systemd unit and timer in docs/examples
  • Mini player
    • New /m/ page showing only the home category plugins and the web player, for small screens and simple accounts
    • New mini_player preference locks a user into that page; it hides the rest of the interface but is not an access control, user access levels still decide what data is reachable
    • Logging in returns you to the page you originally asked for, including index.php#page.php?... links
    • New Mini player button on the login form, next to Register and Lost Password, to land there after logging in
  • Multi select
    • New Multi-Select browse option in the View menu turns the checkboxes on; they stay hidden until you ask for them
    • Checkboxes on the playlist items and collection items lists select several entries at once, and the header checkbox selects the whole page
    • Ctrl/Cmd+click toggles a row and Shift+click selects a range, anywhere on the row that is not itself a button or a link
    • A selection can be played, played next, played last, added to the temporary playlist, added to another playlist, or removed from the playlist in a single action, from a bar that stays in view while you scroll the list
    • Removing a selection sends one request and renumbers the list once, instead of one request and one full renumber for every entry
    • A mixed collection groups the selection by type before acting on it, so playing a selection of albums and songs together works from one bar
    • The same checkboxes, gestures and action bar on the song lists, which covers the songs browse as well as the song lists on album, artist and search pages
    • A selection of songs can be downloaded as a single zip, when allow_zip_types includes song and batch download is permitted
    • batch.php accepts a comma separated id list, so one zip can hold the medias of several items instead of only one
  • Broadcasting is documented and easier to get working
    • New docs/BROADCAST.md covers the whole feature: the config, the bin/cli run:websocket server it needs, reverse proxy and TLS, and how to test each step
    • New docs/examples/ampache_websocket.service systemd unit, so the websocket server can run as a service like the other jobs
    • The websocket address defaults to wss:// when Ampache is served over https; a plain ws:// default was blocked by the browser as mixed content and reported nothing on the page
    • The broadcast socket also accepts connections from the host in web_path, not only the host in websocket_address; a mismatch was refused with 403 that never appeared in the interface
    • run:broadcast (a UPnP announcement) and run:websocket (broadcasting) now say which is which in their help
    • New broadcast_private preference (Streaming) decides whether a user’s new broadcasts require a listener session; it is on by default, matching what every broadcast did before, and can now be turned off per user
    • The Broadcasts browse has All and Live views; a broadcast only counts as live when it is started and still holds the key a listener connects with
    • Starting the websocket server clears any broadcast a previous server left marked as running, so a crash no longer leaves rows claiming to be live forever
    • Garbage collection clears the state of broadcasts that cannot be running, leaving a broadcast that still holds its listener key alone in case it is live
  • Song previews work again
    • New iTunes and Deezer plugins find a 30 second sample for a wanted album’s tracks; neither needs an api key or an account
    • Neither provider indexes MusicBrainz ids, so a track is matched on artist and title and a wrong match is possible
  • A “Create Playlist” button on the playlists browse. Until now a playlist could only come into existence as a side effect of adding something to one
  • Database
    • New api_enable_8 preference to enable/disable API v8 responses per user
    • New database tables folder and folder_map
    • New database tables object_count_summary and object_count_archive
    • folder added to the object_type enum on several tables (cache_object_count, cache_object_count_run, image, object_count, and others)
    • New user.subsonic_secret column holding the per-user Subsonic password
    • New database tables collection and collection_map
    • New database tables playlist_folder and playlist_folder_map, holding a private per-user tree that organises playlists, smartlists and collections
    • New maintained last_played column on album, album_disk, artist, podcast, podcast_episode, song and video, written on the same statement that increments the play counter and backfilled from the existing play history (live counts, archived detail and consolidated summaries)
    • collection added to the object_type enum on image, object_count, cache_object_count, cache_object_count_run, object_count_summary and object_count_archive, so a collection carries its own art and play statistics
    • collection added to the object_type enum on rating and user_flag, so a collection can be rated and flagged
    • New position_ms, playback_rate and state columns on now_playing, holding what an OpenSubsonic client reports through reportPlayback
    • New artist.lastfm_url column keeping the last.fm page url with the rest of the cached artist info
    • label_asso gains a nullable album column and its artist column becomes nullable, so a label can be associated with an album as well as an artist
    • New song_data.bpm column holding the tagged beats per minute
  • Subsonic
    • OpenSubsonic implementation audited against the published specification on 2026-08-07; the audited build is committed as docs/openapi-opensubsonic.json and pinned by a test so a refreshed copy prompts a re-audit instead of drifting silently
    • New transcoding extension: getTranscodeDecision (POST, with the client’s playback capabilities as a JSON body) reports whether a file can be played as-is, and getTranscodeStream serves the result. The decision is derived from the same transcode settings that serve the bytes, and its transcodeParams token is signed with secret_key so a client cannot choose its own output format or bitrate
    • New playbackReport extension: reportPlayback updates now-playing from a client’s playback timeline, with ignoreScrobble=true refreshing the display without touching play counts
    • New topSongsByArtistId extension: getTopSongs accepts an artist id as well as a name
    • New sonicSimilarity extension serving getSonicSimilarTracks and findSonicPath, backed by a sonic-analysis plugin; the extension is only advertised while such a plugin is enabled, so a server without one reports it unsupported rather than substituting metadata similarity
    • New AudioMuse plugin providing that sonic analysis from an AudioMuse-AI server; set its URL in the plugin preferences
    • NowPlayingEntry reports positionMs, playbackRate and state for a client that uses reportPlayback; ordinary playback reports none of them and the fields stay absent
    • AlbumInfo, ArtistInfo and ArtistInfo2 report lastFmUrl, cached with the rest of the artist info
    • AlbumID3 reports recordLabels, from a new album-to-label association the scanner writes off the release’s label tag
    • Songs, albums, videos and podcast episodes report played, the moment they were last streamed
    • getLyricsBySongId supports enhanced=true, returning word-level cueLine timing when the stored lyrics carry Enhanced LRC timings
    • Songs report bpm. The spec types the field as an integer, so a tag carrying a fraction is rounded here; the native API keeps the value as tagged
    • OpenSubsonic responses carry the documented extra fields in both JSON and XML; the XML serializer emitted little more than plain Subsonic before. Songs gain artists, albumArtists, displayArtist, displayAlbumArtist, displayComposer, contributors, mediaType, samplingRate, channelCount, isrc, replayGain and bookmarkPosition; albums gain artists, displayArtist, sortName, releaseDate, originalReleaseDate, releaseTypes and discTitles; artists gain sortName and artistImageUrl; playlists gain allowedUser; users gain maxBitRate; videos gain originalWidth/originalHeight
    • An internet radio station reports the specified homePageUrl, not homepageUrl; the pure Subsonic API was affected as well, where it did not match the 1.16.1 schema
    • reportPlayback, findSonicPath and getSonicSimilarTracks are reachable; a camelCase handler name never matched the lowercased action it was routed from
    • New per-user Subsonic Password set from the account page, the admin user edit page, or bin/cli admin:updateUser <username> --subsonic <password>, so token auth works without pasting your API key into a music player
    • It is stored encrypted with secret_key rather than hashed, since token auth needs the server to recompute md5(password + salt); changing secret_key invalidates every stored Subsonic Password
    • The API key keeps working as the Subsonic password for both token and plaintext auth, so existing clients do not need reconfiguring
  • Collections
    • A collection is a hand-curated list of objects of any type: the static counterpart to a search, and the non-media counterpart to a playlist. Albums, artists, folders, genres, labels, live streams, playlists, podcasts, episodes, songs and videos can all sit in the same list
    • A collection may be left mixed or pinned to a single object_type, in which case anything else is refused when it is added
    • A collection is ordered. Members keep the order they were curated into, new ones are appended to the end, and the API can move them a few at a time or all at once. Positions stay dense and 1-based, so they are renumbered after anything is added, removed or moved
    • A collection may hold the same object twice, following the existing unique_playlist preference rather than a rule of its own; it is off by default, so duplicates are allowed
    • Playing one expands its members, so an album contributes its songs and anything that cannot be streamed is skipped; duplicates reached by two different routes are played once
    • Collections have their own art, including the mosaic built from their members when no art is set
    • public/private visibility and a collaborator list, matching playlists: a collaborator curates the contents, only the owner or an admin can delete the list
    • New show_collection preference to show/hide the “Collections” link in the sidebar, and with it the collection half of the add-to-list dialog. The link no longer waits for a collection to exist before it appears
    • Collections in the web interface: a collection.php page listing the members, a browse.php?action=collection browse with the usual sorting and filtering, the standard edit dialog for name, visibility, pinned type and collaborators, and the art picker
    • A “Create Collection” button on the collections browse creates one, choosing its name, whether it is public or private, and whether it is pinned to a single item type or left mixed
    • The add-to-list dialog offers collections as well as playlists, under a “Playlists” and a “Collections” heading so the two kinds of destination are told apart. Only the halves that can take what you are adding are shown, and a collection pinned to another type is left out
    • Genres, labels and folders gained the add-to-list control they never had, since all three can be collected
    • A genre expands to its songs the way an album does, so it can be played, queued and added to a playlist as well as collected
    • A folder is curated as itself, so a collection of folders stays a list of folders; adding one to a playlist instead adds the media below it, the way an album adds its songs. A folder with nothing playable in it still offers the control, since it can still be collected
    • The label reads “Add to playlist / collection” once collections are switched on, and “Add to list” where there is no room for it; a server with collections off still just says “Add to playlist”
    • The collection page renders a mixed collection as one ordered list through a new collection_items browse type, each row naming its own type. A collection pinned to a single type is handed to that type’s own browse instead, so a collection of albums looks like any other album view
    • Members can be dragged into a new order and saved with Save Track Order, exactly like playlist tracks. Only a mixed collection offers this — a pinned one is shown through its own type’s browse, which has no drag handle
    • A member can be removed from its row, or several at once through Multi-Select. Members are addressed by their membership row rather than by the object they point at, so removing one of two identical members removes the one you picked
    • Collections can be rated and flagged like any other library item
  • API
    • New collection methods collections, collection, collection_items, collection_create, collection_edit, collection_delete, collection_add and collection_remove, with REST paths under collections/
    • New sonic_match method (REST songs/{song_id}/sonic-match) returning songs that sound like a given song, each with a similarity score on the OpenSubsonic sonicMatch scale (0.0-1.0, 1.0 being the same recording). It needs a sonic-analysis plugin, and refuses the request with none enabled rather than returning an empty list
    • v8 API responses are fully documented: docs/openapi.json carries response schemas for every data type, and docs/API-JSON-methods.md/docs/API-XML-methods.md show per-method response field tables (type, nullable, optional)
    • Album disks are available to API8 clients (album_disks, album_disk, album_disk_songs, plus index, list, browse, stats and get_art). They are what the web interface browses with the album_group preference disabled, and the API had no way to reach them
    • API8 song responses carry bpm
  • BPM
    • The BPM tag is read on scan and kept, instead of being discarded before the catalog saw it. TBPM, the quicktime tmpo atom and the vorbis/APE BPM comment all land in the same place
    • A fraction is kept as tagged, since detection tools write one and rounding it away cannot be undone without a rescan
    • New BPM smart playlist rule under Song Data, so a list can be built from a tempo range
    • The song page shows it, next to Channels
  • Browse
    • Add addition_time sort to album, album_disk and artist. (A disk has no time of its own, so it sorts on its album’s)
    • Add update_time sort to podcast_episode. (The column has existed since 750001 but was never a sort)
    • Add last_played sort to album, album_disk, artist, podcast, podcast_episode, song and video. Anything never played has no value, so it groups first ascending and last descending
    • Every browse filter and sort is now documented with what it actually does, what value it takes and which methods use it, instead of a copy of the raw name list. The pages are generated from the query classes by composer api:docs, and cover the folder, playlist_search and smartplaylist browses for the first time
    • The user browse takes username, fullname and email filters for one column at a time, beside the existing text filters that match all three at once
    • The share browse takes the text filters and sorts by the title of the shared object (name, with title as an alias), plus object_type and user filters. It accepted no filters at all before, and its object sort named a column that does not exist
    • Sorts a browse listed but never answered to now work: total_skip on podcast_episode and userflag on video
    • The video browse honours DESC. Every video sort was built without its direction, so the order never changed, and user_flag_rating built SQL that could not run
  • Search
    • User searches gain Name, Full Name and E-mail rules. Name matches the username, full name or email at once, the same three columns the user browse searches
  • CLI
    • New admin:exportSchema command regenerates resources/sql/ampache.sql from a clean install; it refuses to run against a database with pending updates
    • New user commands admin:deleteUser, admin:enableUser and admin:disableUser
    • New catalog commands run:deleteCatalog, run:enableCatalog and run:disableCatalog
    • New cleanup:enableDisabled command re-enables all disabled songs
    • New export:catalog command writes iTunes/CSV catalog metadata to a file
    • New module commands admin:listModules, admin:installPlugin, admin:uninstallPlugin, admin:upgradePlugin, admin:installCatalogType, admin:uninstallCatalogType, admin:installLocalplay and admin:uninstallLocalplay, backed by a shared PluginManager service the web module pages now use too
    • New admin:mailUsers command sends an e-mail to a user group (all, users, admins, inactive) via a shared BulkMailer service
    • New admin:clearCache command clears the perpetual API sessions (and per-process object caches), and show:debug prints a headless system/environment status report
  • Testing
    • Test suite significantly expanded with dozens of new test files under tests/Module and tests/Repository
  • Playlist art mosaic
    • Automatically generated playlist cover art can now be a mosaic of up to nine covers from the playlist instead of a single random cover
    • Playlists with fewer than four distinct covers keep the single-cover behaviour
  • Transcoding
    • Per-user output-format preferences under Streaming -> Transcoding: encode_target, encode_video_target, encode_player_webplayer_target and encode_player_api_target (explicit format= requests always take priority)
    • Per-user dynamic downsampling with new max_bit_rate/min_bit_rate preferences
    • Per-player bitrate overrides with the new transcode_bitrate_webplayer and transcode_bitrate_api preferences; either left at 0 uses the default transcode_bitrate
    • New ReplayGain output profiles mp3_rg, mp3_car, opus_rg and opus_car, plus a fragmented-MP4 m4a profile; _rg/_car output is never written to the transcode cache
  • Config version 91
    • New encode_args_mp3_rg, encode_args_mp3_car, encode_args_opus_rg and encode_args_opus_car transcode commands; encode_args_m4a now produces a fragmented MP4
    • %MAXBITRATE% is documented alongside %BITRATE% and both are substituted as plain bits per second
  • Config version 92
    • New allow_lost_password option. Setting it to false hides the Lost Password link and rejects lostpassword.php, so nobody can trigger reset mail to your users by posting to it directly
    • New show_mini_player option to hide the Mini player button on the login form; /m/ stays reachable by url either way
  • Add to playlist
    • The action is on the artist, smartlist, podcast, podcast episode, radio station and video pages, which only offered the temporary playlist before
    • Podcast rows carry it as well, so a whole podcast can be added from a browse the way an album already could
  • Moods
    • Database 800047
      • New mood and mood_map tables, the same shape a genre has in tag and tag_map. OpenSubsonic asks for a list of moods on a Child and an AlbumID3 and Ampache had nowhere to keep one
      • New show_mood preference to show/hide the Moods link in the main sidebar
    • Database 800048
      • New hide_moods preference to hide the Moods column in browse table rows; it is on by default, so the column is opt-in
    • A mood is read out of the file tags on a scan: id3v2 TMOO, the MOOD comment of vorbis and APE, and the ab:mood tag AcousticBrainz taggers write. A file carrying both keeps the moods of both. Several in the one frame are split on your additional_genre_delimiters, so Melancholy;Dreamy becomes two
    • A video carries its own moods, read from its file on a scan and editable in its dialog, the same as a song
    • Album and artist moods are derived from the songs, never from a file of their own. Drop a mood from every song of an album and it leaves the album too
    • New browse page at browse.php?action=mood, a cloud whose buttons filter the songs, albums, artists or videos carrying that mood
    • The sidebar link appears once something has been scanned; a library with no moods is not offered a link to an empty page
    • The song page lists them, and the song, album, artist and video edit dialogs carry a Moods field next to Genres
    • A Moods column on the song, album, album disk, artist and video browses, after Genres, whose values filter the browse the way a genre does
    • New Mood search rule on songs, albums and artists
    • Moods you set by hand are written back into the file tags when write_tags is on, so the file and the database converge instead of fighting. Albums and artists have no file, so theirs stay derived
    • mood on the song object of the Ampache API (json and xml), and moods on the OpenSubsonic Child and AlbumID3
    • NOTE the tables are empty until a catalog is scanned
  • Podcast details can be refreshed from the feed
    • New Update details from the feed action on the podcast page, next to Sync, in the same spirit as the artist’s Update details from MusicBrainz
    • The title, website, description, language, copyright, generator and art were only ever read when the podcast was created, so one that renamed itself or replaced its art kept its original details
    • Values the channel does not supply are left alone rather than blanked, and the art is only replaced when the channel advertises one
    • Requires content manager access, and asks for confirmation first because it overwrites details you may have edited by hand
  • A podcast Sync shows a Started notification
    • The sync fetches the feed and downloads episodes, which can run for minutes, and the request renders nothing back. With no acknowledgement the click looked like it had done nothing, so people pressed it again
    • The notification appears as the request goes out, on the Sync button of the podcast page and of a podcast row, and on the episode Sync that downloads a single episode
    • Ajax::button() and Ajax::button_with_text() take an optional notice for this, so any other long running ajax action can say the same
  • A PHP Modules table on Admin -> Server Config -> Ampache Debug listing every php extension Ampache requires or suggests, whether this server has it, and what an optional one is needed for
  • Webserver rules that keep private files out of the web root
    • Optional hardening; nothing in Ampache needs these rules, so an install without them keeps working exactly as before
    • public/.htaccess.dist refuses bin, config, docker, docs, locale, node_modules, resources, src, tests and vendor, which sit beside index.php when you install from a release zip
    • It also refuses dotted paths such as .git and .env at any depth, and leftovers such as .bak, .old, .swp, .sql and .dist; /.well-known/acme-challenge/ stays reachable so certbot can still renew
    • ampache.cfg.php is refused by name from a rule that does not need mod_rewrite, so the config file is not served as plain text if the module is missing
    • New -p/--public option on bin/installer htaccess writes public/.htaccess, which -e on its own still leaves alone; it overwrites the file, so back it up if you edited it
    • A RewriteRule whose substitution is - keeps it when the rules are written for a subdirectory install, instead of being rewritten to a path nothing matches
    • New docs/examples/apache-site.conf, a complete Apache 2.4 vhost carrying the same rules, plus php-fpm, websocket and server-sent-event settings, for anyone running with AllowOverride None
    • New docs/examples/lighttpd-site.conf and docs/examples/caddy-site.conf, replacing the Caddy v1 sample that has not been valid since 2020
    • docs/examples/nginx-site.conf refuses the same set, and its transcode_to rules match again

Changed (8.0.0)

  • A genre you set by hand survives an update from tags
    • tag_map has always had a user column but nothing filled it, so a genre set in the interface lasted only until the next scan re-read the file tags
    • A genre added through the interface or the api is now attributed to the person who added it, and an update from tags treats it as if it were in the file rather than deleting it
    • Removing one by hand still removes it whoever set it, so a manager is not locked out by a user’s choice. Only the tag read is restricted
    • User set genres are marked with a * carrying a User set tooltip, on the pages that render genres as links. The plain text form the edit fields, daap and upnp use is unchanged
    • Moods work the same way, and the two share the marker
  • The artist and album fields of an edit dialog become a search once the list is long
    • Both were a select holding every artist or album you could see, built and sent in full every time a dialog opened; past 1000 of them the field is a search box that lists what matches as you type, and under that it is the same select as before
    • Picking a suggestion files the item under it; typing a name that is not in the list creates it, which is what the Add New option always did
    • Both lists now honour the catalog filter, so a user restricted to a filter group is no longer handed every artist and album in the database
    • SELECT_LIST_LIMIT in src/Config/functions.php decides where the search takes over
  • Podcast feed text is stored as plain text
    • Feeds routinely put markup in their titles and descriptions, and some escape that markup a second time on the way into the xml. Both used to be stored as-is, so the podcast and episode pages showed &lt;p&gt; and <br /> as words
    • Paragraphs and lists are kept as line breaks, the remaining tags are dropped and the entities are decoded; the podcast and episode pages render those breaks
    • An episode description is cleaned before its length is capped, so the 4096 character limit is spent on text rather than on tags
  • A sync refreshes the descriptions of the episodes you already have
    • An item the feed still carries used to be recognised and then dropped, so a description was only ever written the once. A feed correcting a typo, expanding its show notes or fixing its own markup never reached the episodes you subscribed to first
    • The description is read by the same lookup that recognises the episode and only written when it actually differs, so a sync over an unchanged feed costs nothing extra
    • An item that supplies no description leaves the stored one alone, and nothing else about an existing episode is touched: its state, downloaded file, play counts and any edits you made to its other fields stay as they are
    • This is also what carries the plain-text conversion above to episodes already in the database
    • A feed item with no guid no longer matches the first episode that has none, which silently skipped a genuinely new episode
  • The browse filter box matches a name in more than one way
    • A Starts With / Contains menu sits above the box; Contains matches anywhere in the name, so a browse no longer has to be abandoned for the search page to find something by a word in the middle of its title
    • Only one match applies at a time and the choice is remembered per browse, so emptying the box does not put it back to Starts With
    • The private message browse gained the Contains match with everything else
    • browse_filter is on by default for new installs; existing users keep whatever they have set
    • The Users admin page lost its own search form, which the filter box now covers exactly: in Contains mode it matches username, fullname or email, the same three columns the form searched
  • Playback
    • Radio stations, remote-catalog media and song previews stream through Ampache instead of redirecting the client to the source server, so the web player can apply the equalizer, ReplayGain and the visualizer to them
    • A radio station may be added as an m3u, m3u8, pls, asx or xspf url; the stream url inside it is read when the station is played, so a directory that rotates its mirrors keeps working
    • NOTE a radio station now uses your server’s bandwidth for as long as it plays
  • Wanted albums
    • Database 800043
      • image accepts a wanted object type, so a wanted album keeps the cover it gathered instead of asking the art providers on every page load
    • The box title is prefixed Wanted: so an album Ampache does not hold is not mistaken for one in the library
    • Cover art is searched on artist and album name together; on the album name alone it regularly matched an unrelated release
    • The placeholder image fills the art slot when no cover is found, instead of sitting behind the whole box
    • The external links sit above the art in one block, the same layout a regular album uses
    • The external link row a regular album carries, with Deezer and iTunes searches in place of DuckDuckGo and Wikipedia
    • Preview tracks carry play, play next, play last and add-to-playlist buttons instead of listing as plain text
    • Garbage collection removes a wanted album once the library holds it, matched on release-group mbid or on name and album artist
  • Database 800014
    • Dropped four redundant object_count indexes: object_count_full_index (an exact duplicate of object_count_UNIQUE_IDX), object_type and object_count_type_IDX (leading-column prefixes of that key), and date (a prefix of object_count_date_IDX)
  • Play statistics
    • Database 800044
      • New object_count_geo_IDX index on object_count.geo_latitude, geo_longitude, so a place name is looked up instead of read by scanning the play history; only matters with geolocation on
      • New object_type_date_IDX index on user_flag.object_type, date, so the newest flagged lists stop at the rows they show
    • The recently played list picks the users whose history it may show before it reads the play rows, so a user with nothing recent to show no longer walks the whole play history to find that out
    • The recent lists read the newest plays in date order and group those, instead of grouping every play ever recorded to sort them
    • Play counts for a page of songs or artists are read in one query instead of one per row, when a stats threshold applies
    • The democratic cooldown check reads the song ids it needs rather than every column of every play
    • Ratings and flags are read for the whole page on the playlist, smartlist, collection, video and live stream lists, and on the items of a playlist or collection, instead of two queries per row
    • The newest flagged lists read the newest flags in date order and group those, and the highest rated and newest lists no longer build the counts and dates they never showed
    • A random playlist or artist is picked without joining rows the query then has to group away again
  • Caching
    • memory_cache now defaults to true (was false); it batches the per-object lookups a page would otherwise repeat, roughly halving the query count on a large browse
    • Set memory_cache = "false" in ampache.cfg.php if you have a very large catalog and a low PHP memory limit — the cache trades memory for queries
    • Song browse lists prefetch their rows in one query instead of loading each song individually
  • Requires PHP 8.5+ (was 8.2+); ext-fileinfo added as a required extension
  • CI now tests PHP 8.5 only (dropped the 8.2/8.3/8.4 matrix); branch triggers repointed to patch8/release8
  • phpstan/phpstan and phpstan/phpstan-mockery ^1 → ^2; rector/rector ^1 → ^2, retargeted to the PHP 8.5 rule set and now also covering src/Config/Init and src/Module (skip list gained src/Module/Api and src/Module/System/Update/Migration, alongside the existing src/Repository/Model skip)
  • Subsonic
    • OpenSubsonic is now used by default — any user with subsonic_legacy enabled has it disabled for them
    • Catalog ids carry the mf- prefix used by every other object id, everywhere they appear (musicFolder.id, and the parent of a directory or child); unprefixed ids are still accepted on input
    • JSON getMusicFolders sent musicFolder.id as an integer while XML sent a string; both now send the prefixed string
    • OpenSubsonic artist responses (getArtists, getIndexes, getArtist) carry the roles list (albumartist/artist) so a client can tell an album artist from a song-only artist regardless of the subsonic_force_album_artist preference
  • Page navigation uses the History API and real URLs
    • The address bar now shows the page you are on (/browse.php?action=album) instead of a stale path with the real page in the fragment (/index.php#browse.php?action=album), so links can be read, shared and bookmarked
    • Existing # bookmarks still work and upgrade themselves to the real url on load
    • Clicking the page you are already on no longer re-fetches it
  • The optional top menu (topmenu) carries the same entries as the light sidebar, adding Albums, Smartlists, Radio and Log out alongside the existing links; Smartlists follows sidebar_hide_search and Radio only appears when live_stream is on
  • direct_play_limit: any existing “unlimited” (0) value is reset to a default cap of 500 tracks
  • playable_item interface split into displayable_item and container_item as part of a large interface cleanup
  • The server counts (the totals in the API handshake and on the admin debug page) no longer go stale from an unrecognised table name; Catalog::count_table() takes a fixed list of countable tables instead of a free-text string
  • Refreshing those totals no longer re-reads the whole song, video and podcast_episode tables. Each table’s share of items, time and size is stored on its own, so one count went from four full table scans to one and a song deletion to none
  • A song browse reads the artists of every song on the page in one artist_map query instead of one per song; a 50 song page went from 143 queries to 95
  • The row count a browse shows above its pages is counted by the database instead of by reading every matching row into memory. Over a million rows that went from 1.42s to 0.08s
  • The stored waveform is no longer read alongside a song’s comment, lyrics and replaygain, so a browse stops pulling a blob per song that nothing on the page draws. Asking for one explicitly returns it, so a saved waveform is reused instead of being regenerated from the audio every time
  • Internal namespaces reorganised: Ampache\Application is gone (its ajax and upnp applications are now Ampache\Module\Api\Ajax and Ampache\Module\Api\Upnp), and Catalog, the query engines (Search, Smartlist, Query, Random, Browse), the persistence base classes (database_object, BaseModel) and the service classes (Art, Preference, Plugin, Rating, Userflag, Useractivity, Democratic, Tmp_Playlist, User_Playlist) have all left Ampache\Repository\Model for their own domains, which now holds only entities, their contracts and their enums. The api version 5, 6 and 8 output formatters, Upnp_Api and Stats are container services rather than static classes, and the per-type search rule builders followed the query engine into Ampache\Module\Database\Search. Query and Browse swapped the parts each held that belonged to the other, so Query::sql_sort_video() is now VideoQuery::get_sql_sort() and Query::set_is_simple() is gone in favour of set_simple_browse(). Only relevant if you carry local patches
  • API version 8 has been added to the list of API versions
  • Docker: build using docker/Dockerfilephp85
  • Theme
    • Home Dashboard (homedash) rows stay on a single line and clip at the edge instead of wrapping to new lines
    • Personal Favorites (personalfav) list scrolls horizontally instead of wrapping
  • Plugins
    • New installs enable the Home Dashboard, Catalog Favorites and Personal Favorites plugins
    • New installs disable home_moment_albums and home_moment_videos; the home plugins cover the same ground
    • Existing installs keep whichever plugins and home settings they already have
  • composer syntax now runs a cross-platform PHP linter (resources/scripts/tests/syntax.php) so the check works on Windows (replaces syntax.sh)
  • Transcoding
    • Bitrate preferences (transcode_bitrate, max_bit_rate, min_bit_rate) are stored and shown in bits per second (bps); existing transcode_bitrate values are migrated on database update 800018
    • Every rate value is now bits per second. The maxbitrate stream URL argument and the API8 user_edit maxbitrate parameter were previously kbps while everything around them was bps; API6 and older keep kbps, and Subsonic maxBitRate stays kbps as its specification requires
    • encode_args_ts drops the k suffix from -maxrate %MAXBITRATE% to suit. NOTE update encode_args_ts if you have overridden it in your own ampache.cfg.php
    • Bitrate units are now documented in docs/openapi.json and the API method tables; none of the bitrate/maxbitrate arguments previously stated a unit
    • encode_target, encode_video_target and the per-player encode_player_*_target settings moved from ampache.cfg.php to per-user preferences (config values now only seed the default on upgrade)
  • Official release downloads are built with composer install --no-dev, so they contain no dev package. Anything optional that lives in require-dev has to be installed yourself
  • Statistical Graphs
    • Charts are drawn by goat1000/svggraph (LGPL-3.0) instead of szymach/c-pchart, which is a normal requirement rather than a dev one, so graphs work in a release download with nothing extra to install
    • Graphs are SVG instead of PNG and no longer need ext-gd; they scale to the page and stay sharp on a high-dpi screen
    • Charts are grouped bars rather than lines, and each bar is a time bucket labelled at the zoom level you asked for
  • Labels
    • Label pages gain an Albums tab listing the releases associated with the label, alongside the existing artists and songs
    • Placeholder publishers read from tags are no longer imported, and the catalog clean up removes the ones earlier scans created; a label a user entered by hand is never removed
  • Config version 95
    • New label_ignore_pattern option; a regex matched against label names read from tags, so [no label], Not On Label (Artist Self-released), Self-Released and fragments holding fewer than two letters or digits never become labels. It replaces the shipped default rather than adding to it, and (?!) keeps every name
  • Config version 94
    • New playlist_art_mosaic option; set it to false to keep a single random cover for playlist art
    • New playlist_art_mosaic_fallback option (default false); when on, a playlist with no art of its own gets a generated mosaic instead of the blank placeholder, stored as that playlist’s art so it is only built once
  • Config version 93
    • statistical_graphs now defaults to "true"; it was only off because of the c-pchart licence. Set it to "false" to skip the graph queries entirely on a large catalog

Removed (8.0.0)

  • api_debug_handler configuration option and its handling removed entirely
  • szymach/c-pchart dependency dropped, along with the pGraph_Yformat_bytes() helper it needed
  • resources/fonts/FreeMono.ttf, left behind when easy_captcha was removed; gregwar/captcha ships its own fonts
  • Unused legacy OAuth implementation deleted (OAuthDataStore, OAuthServer, OAuthSignatureMethod_PLAINTEXT, OAuthSignatureMethod_RSA_SHA1)
  • The ext-pthreads suggestion, along with the unreferenced ScrobblerAsync class that was the only thing to ever extend Thread; the extension has no PHP 8 support and needs a thread-safe (ZTS) build that no distribution ships
  • docker/Dockerfilephp82, Dockerfilephp83, Dockerfilephp84 removed (replaced by Dockerfilephp85)
  • The periodic count sweep (Catalog::update_counts()) is gone, along with the 30 minute timer it kept in update_info. Counts are maintained as things change and repaired by garbage collection (bin/cli run:updateCatalog -g), so they are no longer stale between sweeps
  • The 7digital preview plugin, whose api no longer exists. Song preview is now provided by the new iTunes and Deezer plugins
  • Database 800040
    • The 7digital_api_key and 7digital_secret_api_key preferences are removed
  • The popup web player is removed (web_player.php, create_web_player.inc.php). Playback is always the embedded player at the bottom of the page. NOTE if you used the popup to keep the player in a separate window, there is no replacement for it
  • Database 800039
    • folder rows holding a bare directory name are removed; the next catalog scan recreates them with their real path
  • Database 800038
    • object_count gains the missing podcast rows for episode plays recorded before podcasts were counted
    • The update_counts row is removed from update_info; it timed a sweep that no longer exists
  • Database 800020
    • The webplayer_html5 preference is removed; HTML5 is the only remaining web player
  • Database 800022
    • The ajax_load preference is removed. It never controlled page loading; what it did was select the popup web player above and silently switch off play-next and append
    • Rolling back to Ampache7 restores the preference, the same as any other removed one

Fixed (8.0.0)

  • A PHP deprecation is logged as Deprecated at warning level instead of as an Error, so a dependency that has not caught up with the PHP floor no longer fills the log with errors
  • A preference reaches the server as the type it declares: an integer preference is an int and a boolean one a bool, instead of the string every value is stored as
  • The API3 stats method answered with an error instead of a list of random albums when no limit was given
  • Subsonic
    • getSimilarSongs, getSimilarSongs2, getArtistInfo, getArtistInfo2, getNewestPodcasts and getTopSongs failed when count was not a number
    • setRating with a non-numeric rating removed the rating instead of refusing it
    • A Subsonic catalog logged Unable to insert song - %s without the file path it was reporting
    • updateShare answered with success when the share belonged to another user, having changed nothing
  • The admin Enable Disabled action and external share creation failed on their own inputs
  • The rest/.htaccess configured? and play/.htaccess configured? checks report a file left over from an older release, rather than only testing the web path prefix on whatever rules it already has. A file that has never been written reports as unconfigured instead of as configured
  • Sorting the combined playlist and smartlist list by last_count answered with an error instead of a list. The union it reads never carried the column it sorts on, though both tables have it
  • The followers list is the accounts doing the following. It was built from the ids of the follow records, so it could name people who follow nobody
  • Sorts a browse implemented but never offered, so clicking the column did nothing: id on broadcast, private message, share, shoutbox and wanted, release_date on video, title on genre and mood, and genre on genre. from_user on private messages and username, last_seen and create_date on followers are new, and the private message browse takes the equal/exact_match filters it already implemented
  • Sorting a browse by a column reached through a join emptied the list, when the column before it was sorted by a different join. Sorting an album list by Artist was the common way in
  • An album sorted by a column its artists or songs are reached through listed the same album once per artist or song it has
  • The current playlist on the Localplay page was drawn outside the Localplay Control box it belongs in, leaving the page with three unbalanced closing tags
  • The Popular Album Disks list was always empty, however much a disk had been played
  • Rating and flag lists for genres, collections, podcasts and live streams failed with catalog_filter enabled
  • The newest list for a genre, a live stream or a collection came back empty
  • Retagging a song to drop one of its artists left that artist holding the plays it had gained from that song
  • The broadcast button took two clicks to show its menu on a scrolled page, and the menu opened below the fold. The popup dialogs no longer navigate, and the broadcast one is placed against the window so it tracks the button in the fixed player
  • The websocket server logged a dozen PHP 8.5 deprecation errors on every connection, drowning the broadcast log; cboden/ratchet moves to the 0.4.x branch, which supports PHP 8.5, and ratchet/rfc6455 to v0.4.1
  • A database connection dropped by the server (idle timeout, restart, killed thread) was kept and reused, so every following query failed with MySQL server has gone away. Long running processes suffered worst: the websocket server could not register a broadcast or authorise a listener once its connection had timed out
  • Turning on album_art_store_disk without setting local_metadata_dir hid every cover; the art was still written to the database but only ever read back from disk
    • Thumbnails took the same route and were rebuilt from the original on every request instead, so a browse page resized every cover it showed, every time it was drawn
  • Art stored for something that is not a library item, such as a wanted album, returned an empty image
  • Uploading a file with an album name always failed after the file had been copied into the catalog, leaving it on disk but absent from the library
  • Batch download was refused for every object type unless allow_zip_types named them; leaving it unset now allows all supported types, as ampache.cfg.php.dist documents
  • Settings that exist as both a config option and a preference read the config file value, ignoring the preference; Allow Downloads had no config option at all, so batch download stayed off however it was set
  • Deleting a catalog filter from a link that carried no filter name confirmed it with a blank name and logged a runtime error; the confirmation now reads Catalog Filter
  • A media file with no readable artist tag is imported under Unknown (Orphaned), the same placeholder an untitled album already uses; such a file could never be added before
  • A song preview is played straight from the provider’s url instead of being proxied through Ampache, so no preview traffic passes through the server
  • Grid views (including the mashup dashboards) dropped the play and add buttons from any tile holding more items than direct_play_limit, shifting the rest of that tile’s controls out of place. A tile always carries its full set; the limit still applies in the list views
  • Cleaning a remote, Subsonic, Dropbox or Seafile catalog removed songs without recording them in the deleted-song archive, so they could not be restored and left no trace; they are archived the same way a local catalog’s are
  • Adding a second Beets (remote) catalog for a URL that already had one was allowed; the duplicate check looked in the wrong table for a column it does not have
  • Ampache Remote Catalogs
    • Cleaning a remote catalog deleted every song it could not confirm, so a server that was unreachable, or answering an expired session or a permission error, emptied the catalog; only a Not Found reply removes a song now
    • A clean that loses contact with the remote server stops and keeps the songs it has not reached yet, instead of working through the rest of the catalog
  • Moving a file between catalogs (run:updateCatalogFile -m, run:updateCatalogFolder -m)
    • The album or podcast moved catalog as soon as the first of its files did, rather than once the rest had followed
    • A moved podcast wrote its new catalog to the album table
    • The album’s and podcast’s catalog_map rows were rewritten under the media type instead of their own
  • Renaming a file into another catalog (run:updateCatalogFile -r) updated the mapping but not the stored path, leaving the row pointing at the old file
  • Importing a playlist that links to this server accepted every song id, existing or not, so a dead link became a dangling playlist entry
  • Folder browsing and folder play counts, which have never worked
    • The scanner stored a folder’s bare directory name in folder.path_name instead of its path, so no song was ever mapped to a folder: every folder was playable = 0 and none gained a play count
    • Reading a folder’s modification time failed for the same reason, logging a filemtime(): stat failed runtime error per folder on every scan
    • A folder’s play count sums its whole subtree, which is what a play records; it was rebuilt from the media mapped directly to the folder while a play increments every parent
  • Play counts
    • Clearing statistics left every play count standing; only the played flag was reset, and that was tested against the count it had not cleared
    • Deleting a play from your history recorded a skip for it, so removing plays inflated skip counts
    • total_skip on an episode or a video that was only ever skipped was wiped
    • A multi-disk album took one disc’s skip total instead of the album’s
    • Server totals (album, album_disk, artist, catalog, label, license, tag, items, time, size) were only correct for up to 30 minutes at a time; they are maintained as things are added and deleted, and repaired by garbage collection
    • Catalog::get_videos_count() raised an unknown-column error for any catalog id
  • Adding a catalog stopped at the first WMA file carrying a boolean ASF tag (IsVBR), leaving the rest of the catalog unscanned
  • One unreadable file no longer stops a catalog add, verify or folder scan. Only a failure raised as an exception was skipped, so a file whose tags produced a type error ended the whole run instead of that file
  • A user who kept a preference row left behind by a much older version was never given the preferences added since. The repair pass finds users by how many preferences they hold, and the stale rows made up the difference; they are now cleared before the count is taken
  • Verifying a catalog larger than 10000 items with catalog_verify_by_time enabled checked the first 10000 over and over once everything was already up to date, leaving the rest of the catalog unverified. Each pass now takes the next page
  • Moving an album’s files to another catalog left a second copy of every disk behind in the old one, which the disk browse listed alongside the real one. Garbage collection matched a disk on its album and disk number but not its catalog, so the leftover never qualified
  • Deleting an entry from the Recently Skipped list removed it from the history but left the skip counted, so the count kept climbing away from the list it was drawn from. Deleting a download still leaves every counter alone, as before
  • User avatars were served by the generic art handler on an install in a subdirectory, because the rewrite that routes them tested for /image.php at the web root. The .htaccess files are rewritten for your web path on write, but only the rules, not their conditions
  • Database
    • The missing table check reports and recreates tables again. It only ever looked at migrations that had yet to run, while a table is only claimed once its own migration has passed, so the two never met and nothing was reported at any version
    • object_count_summary and object_count_archive are covered by that check, which they were not before
  • Unexpected errors from an API method were logged as a bare message with no file or line, leaving nothing to locate the cause by
  • Pages that stopped part way through and returned a blank or half-written page, because an uncaught error is logged and swallowed rather than shown
    • The embedded web player (web_player_embedded.php) and the video page, when opened without a playlist_id; the player gets an empty playlist instead
    • Generating a video preview image for a video id that is not in the database
    • random.php?action=get_advanced with an empty type; an empty or unknown type falls back to song
    • albums.php?action=show_missing, when a MusicBrainz release-group lookup answered without title, first-release-date or releases
    • A missing artist page with no musicbrainz id
    • Selecting cover art once the session’s candidate list had expired; the choice is checked and you are returned to the previous page instead
    • share.php?action=external_share with no plugin named; the request is refused up front instead
  • Unexpected errors that left you looking at a blank or half-written page
    • A page handler that throws now shows a generic error page linking to the debug page (test.php); ajax calls, media streams and API clients are left with their own payload
    • A startup failure that none of the init handlers expected redirects to test.php rather than ending the request silently
  • A database with no tables in it (a valid config pointing at an empty database)
    • Instead of a half-loaded page and a log full of missing table errors, you are sent to test.php, which names what is missing
    • update.php redirects there as well, rather than rendering a page it has no version to fill in
    • bin/cli admin:updateDatabase reports it instead of ending in a QueryFailedException stack trace
  • Right click (libitem_contextmenu) actions on a browse row
    • A row states its identity with data-object-type and data-object-id; the menu used to cut the row id at the first underscore, reading podcast_episode_5 as podcast #episode
    • Album disk rows, in both the browse and “Albums of the Moment”, were labelled as albums, so the menu (and the inline refresh after an edit) went after the album that happened to share that id
    • Favorite Lists on the home page labelled a smartlist as a playlist, so the menu played whichever playlist shared its id
    • Podcast and podcast episode rows had no menu at all
    • Stray empty menu wrappers in the album, album disk and folder browse headers opened a menu that could do nothing (and were invalid HTML inside a <tr>)
  • Collections
    • The song list carried the playlist reorder (drag) column, although a collection cannot be reordered from the web interface
    • The delete action ran through a javascript: url; it is a plain link now, so the confirmation and the following navigation behave like every other delete
  • On a podcast page the “Add All to Temporary Playlist” and “Add to playlist” buttons shared their element ids with the episode row of the same number, so clicking one could fire the other’s action
  • Repeated queries on every page
    • The installed-plugin version lookup read the whole update_info table once per plugin; it is read once per request and only for the Plugin_ keys
    • Editing a song rebuilt the entire Song object — a three table join — once per field changed, only to re-check who uploaded it; the uploader is read once per save
    • Every model’s build_cache() ran its batch query and then discarded the rows whenever memory_cache was off, leaving the per-object queries to run anyway; it now returns before querying
  • playlist_create on API3 recorded the server playlist count before inserting the row, so the stored total was one short until the next playlist create or delete corrected it
  • Deleting a label left its label_asso rows behind, so a later label created with the freed id inherited that label’s artists; the clean up now sweeps associations whose label is gone
  • Url shortener plugins (bitly, yourls) were never applied to share links
  • Plugins
    • The Discogs plugin never returned album or artist art; it only searched when it was handed albumartist and album, or artist, and art gathering sends the name it wants as title
    • Asking Discogs for album art offered the artist’s image instead
  • The catalog files and catalog size graphs only drew the time buckets that gained a file, so a library added in a single scan was one point however wide the date range; they carry the running total across every bucket in the range
  • The running total those graphs start from ignored the catalog and object filters, so a graph for one catalog counted every earlier file on the server
  • stats.php?action=graph rendered graphs without checking statistical_graphs first, so it ignored the setting and was a fatal error whenever the charting library was absent
  • The catalog size graph was empty until a second time bucket existed
  • The catalog size graph read zero for object_type=album
  • Uploading art, an avatar, a playlist or a podcast import file stopped the web player, because a form carrying a file fell back to a full page load
  • The Ignore link on the update available notice stopped the web player; dismissing the notice only clears the stored version, so it no longer reloads the whole page to do it
  • The Select toggle on the admin Disabled Songs list called a check_select() function that was defined nowhere, so it silently did nothing
  • Updating the sources from the web interface reported success when it had not worked
    • composer install, npm install and npm run build ran with their exit status discarded, so a failed dependency install left a pulled-but-unbuilt install with no error anywhere. The status is checked, the output is logged in full and shown, and a failure keeps you on the update page
    • npm failed outright whenever the web server user’s home directory was not writable; its cache is pointed at a writable one
    • npm install now installs the dev packages explicitly — the postinstall and build scripts that produce every shipped asset live there, so a server with NODE_ENV=production built nothing
    • The update is refused up front, before the sources are pulled, when exec() is disabled or when the checkout, node_modules or vendor cannot be written by the web server user
    • Dependencies were installed with --prefer-source, which checks out every package as a git working tree; --prefer-dist is used instead
    • A dirty vendor checkout is restored before the install runs; composer refuses to remove a modified source install, so a composer_no_dev update aborted while stripping the dev packages and left vendor incomplete
    • A finished update returns you to the page it was started from instead of the home page, where it used to land nowhere at all
  • The View menu on a playlist’s items did nothing until the page was reloaded, so Pages, Infinite Scroll, Alphabet and Multi-Select all looked broken
  • Smartlist art was never gathered from the songs it matches; only a playlist took that path, so a smartlist fell through to the configured art providers and found nothing
  • With album_art_store_disk enabled, the art picker could not read any cover a playlist offered from one of its members; the file was looked for under the type being gathered for rather than the type the image row belongs to
  • Database 800049
    • A genre set on a broadcast is saved and shown. The edit dialog has always offered the field, but tag_map.object_type had no broadcast value, so nothing was ever stored against the broadcast
    • The rows those saves wrote instead name no object at all and are removed; they held a genre alive that nothing was using
    • tag_map.object_type and user_activity.object_type accept a folder on an install seeded from ampache.sql, which had never received the widening every other table got in 800004
  • An update from tags leaves a song with no album tag alone instead of rewriting it every scan. Untagged songs by different artists share the one Unknown (Orphaned) album, and each scan handed that album to the artist of whichever song it read last
  • A genre spelled in a different case in the file tags no longer re-applies the album and artist genres on every update from tags
  • Database 800023
    • Uploaded art took its mime type from the filename, storing image/jpg (not a real type) for a .jpg upload and image/JPG for .JPG; the type is now read from the image data and existing rows are corrected
    • Where the same artwork was stored twice under both spellings the image/jpg row is left as it is, because unique_image includes mime and no art is deleted during an upgrade
  • Localplay
    • MPD status no longer throws a runtime error when the controller is unreachable or returns no status
    • An unreachable controller (MPD, VLC, httpQ) no longer surfaces a raw fsockopen() connection warning
    • An active-instance preference pointing at a deleted instance falls back to an available one instead of failing to connect
    • The control panel updates the reported volume, playback state and track after every command, not just mute/repeat/random
    • Playlist items resolve the song from its stream url even when stream_beautiful_url is off, so they show the real title/artist/album instead of the raw play url
    • An empty controller playlist was reported as a controller error
    • The repeat and random toggles failed when their request arrived without a value
    • The add and edit instance forms turn browser autocompletion off, so a saved site login is no longer offered for a controller’s host, port and password fields
  • A lyrics plugin that cannot reach its service no longer holds the page open until PHP gives up; LrcLib connect and request timeouts are capped, and a plugin that throws is logged and skipped so the next one is still tried
  • Ajax actions returning an HTML fragment (get_share_links, show_broadcasts) kept the XML ajax headers, including Content-Disposition: attachment; filename=ajax.xml, so a browser could offer the fragment as a download instead of rendering it
  • Light sidebar can scroll to reach its bottom entries on short screens
  • AJAX actions returned a server error instead of updating the page
    • Setting a favorite
    • Selecting a catalog in the browse filter box
    • Deleting a genre
    • Removing a track from a playlist, and adding items to an existing playlist
    • Enabling or disabling a song
  • Database 800012
    • user on object_count, user_activity, user_data and now_playing could still be UNSIGNED on upgraded databases, so the system user (-1) was stored as 0
    • Plays from a share recorded against user 0 are moved to the system user (-1) so they appear in Recently Played
  • Subsonic
    • getArtists ignored the user’s catalogs entirely and returned every artist on the server
    • musicFolderId was ignored by getStarred, getStarred2 and getSongsByGenre
    • musicFolderId was ignored by getAlbumList/getAlbumList2 for the random, highest, frequent, recent, starred, byYear and byGenre types
    • A musicFolderId naming a catalog the user can’t browse returned everything instead of nothing
    • hls.m3u8 answered with an error; the endpoint is named with the suffix in the Subsonic specification, and only the suffixless hls was served
    • An object deleted since the id list was built is left out of the response instead of being returned as an entry with no name or content; getGenres and getInternetRadioStations were the most visible, along with the song results of search2/search3
  • User avatars requested through a /play/art/{sid}/user/{id}/... url were always denied when public_images is disabled; the user rewrite rules dropped the auth parameter the other art rules pass on
  • Upload
    • The artists of an uploaded song are mapped to the upload catalog as the song is added, so a new one is no longer missing from an artist browse filtered to that catalog until the next catalog update
    • Uploading several files by the same new artist created a duplicate artist for each file, because the uploads run in parallel; a new album was duplicated the same way
    • Uploading several files sharing a genre that was new renumbered that genre once per file, so every genre already given to a song was left pointing at a row that no longer existed
  • Rating or favouriting a playlist, collection, folder, search or live stream logged an SQL error on every click
  • Search
    • The does not sound like operator returned nothing on the Genre, Song Genre, Album Genre, Artist Genre, Playlist Name, Song Artist and Album Artist rules
    • Another User rating rules (has rated 5 stars .. has not rated) returned nothing on album, album disk, artist, podcast and podcast episode searches, and on the song Another User (Album)/Another User (Artist) rules
    • My Favorite Songs and My Favorite Artists returned nothing on album, album disk and artist searches
    • The playlist Owner rule offered rating operators instead of is/is not, so it never matched an owner
    • Album disk searches ignored the Added, Updated, Duplicate Tracks and Smart Playlist rules
    • Podcast and podcast episode searches ignored the Recently Played rule
    • Artist searches on Image Width and Image Height returned nothing
    • The genre search offered two rules both labelled Album Count; the second is the artist count and now says Artist Count
    • The genre rules counting a genre’s own contents shared their labels with the object’s own counts, so an artist search offered two Song Count rules. They are now Song Count (Genre), Album Count (Genre) and Artist Count (Genre)
  • A stream that could not be opened answered 200 with an empty body, which a player reports as a corrupt or unsupported stream instead of a server error; it now answers 500
  • A transcode requested while no transcode_cmd is configured is logged as an error instead of at the most verbose debug level, where the reason nothing played was effectively invisible
  • Song duration
    • A file carrying an ID3v2.3 TIME frame was given that frame’s recording time of day as its duration, so a 98 second track was imported as 2019 seconds
    • Durations are read from the file rather than estimated from its size and bitrate, which counted anything stored after the audio (APE cover art, for example) as playing time. The estimate is kept for remote catalogs and files with no readable duration
  • Browse
    • Filtering a song list from the sidebar Filters box dropped the track numbers and the # sort column and brought back the columns the page had hidden, on the album, album disk, playlist, podcast and label pages
    • The Limit box and the song list’s Year sort header lost the same columns

API 8.0.0

This version is being developed for Ampache8 (develop branch) only and is not yet released.

API version 8 joins the concurrent live surfaces (3/4/5/6 — version 7 remains unused/unsupported), built on the MethodInterface/DI method pattern.

Added (800000)

  • ALL
    • Request parameters for POST/PUT/PATCH/DELETE may now be supplied in a JSON body (Content-Type: application/json), in addition to the existing query-string and form-encoded (application/x-www-form-urlencoded) support
    • New API version 8 added to Api::API_VERSIONS; Api::DEFAULT_VERSION bumped 6 → 8
    • New Api8 method surface (132 methods) under src/Module/Api/Method/Api8/, implemented against MethodInterface with dedicated Json8_Data/Xml8_Data output classes
    • ApiOutputInterface (and its JsonOutput/XmlOutput implementations) reworked onto a single version-parameterized method per concept — albums(int $apiVersion, ...), error(int $apiVersion, ...), podcastEpisodes(), setCount(), setLimit(), setOffset(), success(), writeEmpty() — replacing the previous pattern of a separate xxx()/xxx6() method pair per API version
  • album/albums/podcast_delete/podcast_episodes (API3, API4, API5)
    • Converted from legacy static methods to the MethodInterface pattern (matching the API6/API8 conversion above); the existing filter presence and object-exists checks are preserved, only the error codes changed (see ALL (internal) under Changed)
  • REST
    • New folders action (Folders8Method) for browsing the catalog’s virtual folder tree; filter takes either a folder id or a path name, so REST paths folders, folders/{folder_id} and folders{path} all reach it
    • New playlist_remove action (PlaylistRemove8Method)
  • upload (API8 only)
    • New upload action adds a media file to the catalog named by the upload_catalog preference, so uploading is no longer web-only
    • The file is sent either as a multipart form field named upl, or as the raw request body with filename naming it
    • Optional license, artist_id, artist_name, album_id and album_name behave exactly as the web upload form does, including refusing an artist or album owned by another user
    • Requires the allow_upload preference and the access level named by upload_access_level; a file that fails to be added is removed from the catalog directory again
  • collection (API8 only)
    • New actions collections, collection, collection_items, collection_create, collection_edit, collection_delete, collection_add and collection_remove. A collection is a hand-curated list of objects of any type, so it is the way to curate anything a playlist cannot hold; the members are not restricted to media
    • collection_create takes an optional object_type that pins the collection to one type, after which collection_add refuses anything else. Leave it out for a mixed collection
    • A collection is ordered, and the order is part of the data. collection_items returns the members as one flat list under contents in curated order, each entry carrying its track (1-based position), its track_id (the membership row) and its object_type, with that type’s own object nested under a property of the same name. A grouped-by-type response cannot express the order of a mixed collection, so it is not used. The scalar items remains the total member count and is not reduced by offset/limit
    • collection_edit gains paired items/tracks parameters that reorder members exactly the way playlist_edit does — each pair puts one member at one position — so a partial or a whole reorder is one call. Because a collection is heterogeneous, each entry in items carries its type as object_type:object_id
    • collection_add appends to the end, so it never disturbs the order of what is already there
    • A collection you cannot see reports not found rather than access denied, so a private collection’s existence is not confirmed to a stranger
    • Duplicate members are governed by the user’s existing unique_playlist preference rather than by a collection-specific rule or a database constraint; it is off by default, so a collection may hold the same object twice by default, matching playlists. With it on, collection_add refuses a repeat with an error instead of silently doing nothing
    • collection_remove accepts a track position as well as an id/object_type pair, because a position is the only unambiguous address once duplicates are possible. A position removes exactly one member; an object removes every member pointing at it. Either way the remaining positions close up, so they stay dense and 1-based. collection_remove still does not error on a non-member
    • Both name the member’s type object_type rather than type, because the REST path already spends type on the resource name and the two would collide in the same query string
    • REST paths collections, collections/{collection_id} and collections/{collection_id}/items
  • playlist_folder (API8 only)
    • New actions playlist_folders, playlist_folder, playlist_folder_items, playlist_folder_create, playlist_folder_edit, playlist_folder_delete, playlist_folder_add and playlist_folder_remove. A playlist folder organises playlists, smartlists and collections into a tree of arbitrary depth
    • The tree is private to each user, and where a list sits belongs to the pair of you and that list rather than to the list itself. So you may file another user’s public playlist into your own folder without changing anything for them, and two users can file the same playlist in different places
    • A list is in exactly one of your folders at a time: filing one that is already filed moves it rather than copying it
    • The root is implicit and holds every list you can see that has not been filed elsewhere. Nothing is stored when a playlist is created, so it appears at your root immediately, and it reappears there when it is taken out of a folder. Address the root as 0 or /
    • playlist_folders returns the whole tree as one flat list; rebuild the hierarchy from each folder’s parent, where 0 is the root. A folder belonging to another user reports not found rather than access denied, so a stranger cannot probe for one
    • filter takes either a folder id or a name path, so REST paths playlist-folders/{playlist_folder_id} and playlist-folders/Rock/Live both reach the same folder. A folder name may not contain a / for that reason, and must be unique among its siblings — the comparison is case-insensitive, so Rock and rock collide
    • sort_order is client-assigned and shared by a parent’s folders and its filed lists, so the two interleave in one ordering space; ties are broken by name. Positions are left exactly as sent rather than renumbered, so gaps are preserved
    • playlist_folder_edit refuses a move into the folder’s own subtree, which would otherwise detach the branch
    • playlist_folder_delete refuses a folder that still holds a child folder or a filed list; the lists themselves are never deleted with it, so a folder is emptied by moving its contents out first
    • playlist_folder_items returns the members as one flat list under contents, each entry carrying its sort_order and its object_type (playlist, smartlist or collection) with that type’s own object nested under a property of the same name
    • REST paths playlist-folders, playlist-folders/{playlist_folder_id}, playlist-folders{path} and playlist-folders/{playlist_folder_id}/items
  • sonic_match (API8 only)
    • New action (SonicMatch8Method) returning songs that sound like the song in filter, each carrying a similarity score. Similarity comes from analysing the audio, which needs a sonic-analysis plugin, so with none enabled the request is refused (4703) rather than answered with an empty list. The score shares the OpenSubsonic sonicMatch scale — 0.0-1.0 where 1.0 is the same recording, and -1 when the backend gives no comparable score — so a client reads the same number from either API. REST path songs/{song_id}/sonic-match
  • random (API8 only)
    • New action (Random8Method) that picks a random object and redirects (302) to its stream url — mirrors stream’s params (bitrate/format/offset/stats, song only). API8 only: API6 is shared with Ampache7, which does not serve it
    • type takes album, album_artist, album_disk, artist, catalog, favorite, genre, label, playlist, podcast_episode, rating, search, song, song_artist or video; a container type resolves to a random song from within it
    • genre matches the song’s own tag, as a song browse does — an album or artist tag is not inherited. label accepts either the artist or the album association recorded in label_asso
    • favorite picks from the songs you have flagged, and rating from the songs you have rated. Both read the song’s own flag or rating; a flagged album does not make its songs favourites
    • NOTE favorite and rating read filter as a flag or star value rather than an object id — favorite: 1 or omitted for flagged, 0 for not flagged; rating: 1-5 for that many stars or more, 0 for unrated, omitted for any rated song
    • filter names that container. artist accepts either artist credit, where song_artist and album_artist narrow it to one
    • NOTE filter is read against the table named by type, and those id spaces overlap — an album id and an album_disk id of the same number are different objects
  • download (API8 only)
    • New zip parameter: when type/filter identify a container object (album, artist, playlist, podcast) and zipping is enabled (ZipHandlerInterface::isZipable()), downloads the whole container as a zip instead of a single stream redirect — reuses the same ZipHandlerInterface used by the batch.php GUI download
  • share_create (API8)
    • Object type validated via LibraryItemEnum::tryFrom() against Share::VALID_TYPES, checked after the playlist/smartlist → search remap
  • OpenAPI / response schemas
    • docs/openapi.json now defines components.schemas for every v8 data type (album, song, artist, playlist, podcast, podcast_episode, video, genre, label, live_stream, catalog, license, share, bookmark, user, song_tag, the per-type deleted_* items, and the browse/list/now_playing/activity/shout wrappers) and wires each into its 200 response, replacing the placeholder type: object; every field documents its type and whether it is optional/nullable
    • docs/API-JSON-methods.md and docs/API-XML-methods.md gain a generated per-method response field table (field, type, nullable, optional) with links between related objects
    • New docs/openapi-6.json, a spec pinned to API6 for contract testing a single version. It documents only the surface Ampache7 and Ampache8 both serve: no API8-only paths (/folder, /folders, /playlists/{playlist_id}/remove), no /random (API8 only), no error status codes (API3-6 always return HTTP 200 with the error in the body), response schemas from the Json6_Data builders, and maxbitrate documented as kbps
    • New tests/Module/Api/Api6SpecConformanceTest.php locks that contract: it fails if a documented path leaves Api6::METHOD_LIST, if an error status code appears, if a $ref dangles, or if an object’s fields drift from the matching Json6_Data builder. This is what stops API6 changing between Ampache7 and Ampache8
    • Json6_Data::songs_array() gains the @return array-shape docblock the other builders already carry. It records the two real differences from API8: catalog is an int (a string in API8) and metadata fields are top-level keys (nested under metadata in API8)
    • Response schemas for democratic, handshake, ping, playlist_generate, the preference endpoints (user_preference, user_preferences, system_preference, system_preferences), url_to_song and system_update
    • stream and download are documented as the 302 redirect they actually return (download also documents the zip=1 archive body), and get_art as an image body, instead of an undescribed 200. Each names the headers it sets: Location for the redirects, Content-Type/Content-Disposition for the zip, and Content-Type/Content-Length/Access-Control-Allow-Origin for art
    • Response schemas for search, stats, get_similar, followers, following, localplay, get_lyrics, get_external_metadata, playlist_hash, player, register and every create endpoint (bookmark_create, catalog_create, live_stream_create, playlist_create, podcast_create, share_create) - 145 operations now carry a schema, leaving only the binary media endpoints undocumented
    • New resources/scripts/api-docs/check_openapi_examples.py, which fails when an inline example in docs/openapi.json contradicts the schema its operation is wired to
    • Response schemas for album_disks/album_disk/album_disk_songs and localplay_songs, generated from the Json8_Data::album_disks_array() and LocalPlay::get() docblocks; every documented path now carries an x-rpc-mappings entry
    • random documents the filter parameter and all seven type values it accepts (artist, album, playlist, podcast_episode, search, song, video); only three were listed
  • album_disk (API8 only)
    • New album_disks action returning the disks of an album (filter is the album id, the counterpart of album_songs)
    • New album_disk action returning a single album disk, and album_disk_songs returning the songs on one disk
    • album_disk accepted by index, list, browse, stats and get_art. rate and flag already accepted it
    • Album disks are the browsing unit whenever the per-user album_group preference is off, so a client can now reach the same objects the web interface shows. albums and album are unchanged and never vary with that preference
  • song (API8 only)
    • Song responses carry bpm, the tagged beats per minute, read on scan into the new song_data.bpm column
    • The value keeps the fraction a detection tool wrote (133.4), so it is a float rather than an int
    • New bpm rule for advanced_search, numeric, song only
  • mood (API8 only)
    • Song responses carry mood, a list of {id, name} objects shaped exactly like genre, read on scan from the file tags into the new mood and mood_map tables
    • The list is empty until a catalog has been scanned, and stays empty for files carrying no mood tag
    • New mood rule for advanced_search, text, on song, album and artist
    • New mood browse filter on the song, album, artist and video browses, taking a mood id
    • Album and artist moods are derived from their songs, so they answer which moods are on this album rather than naming a tag of their own
  • advanced_search (API4 and above), search_group (API6 and API8)
    • A user search takes new name, fullname and email rules; name matches the username, full name or email at once, the same three columns the user browse searches
    • A user search accepts title as name, so the generic rule search_group sends returns matching users instead of every account
  • shares (API4 and above)
    • filter/exact and the cond text filters match the title of the shared object; the share browse ignored every filter it was sent before
    • New name sort ordering shares by the title of the object they point at, with title as an alias. It is the sort shares asks for by default, so the default order changes from insertion order to alphabetical
    • New object_type and user filters, taking a share type (album, album_disk, artist, playlist, podcast, podcast_episode, search, song, video) and a user id
  • REST
    • Multi-word resources and actions may be spelled with a dash anywhere in a path (album-disks/{id}/songs); the dashed form is folded onto the canonical snake_case action by a single rule rather than a per-name alias list
    • New albums/{album_id}/disks, album-disks/{album_disk_id}, album-disks/{album_disk_id}/songs, plus art/flag/rate/search/stats on album-disks
    • New localplay/songs path for the existing localplay_songs action
    • New object-scoped browse paths that need no catalog: albums/{album_id}/browse, album-disks/{album_disk_id}/browse, artists/{artist_id}/browse and podcasts/{podcast_id}/browse. The existing catalogs/{catalog_id}/browse/... paths still work and keep the catalog restriction
    • Each object gains catalog, the id of the catalog it belongs to, in both JSON and XML. song, podcast_episode, live_stream, folder and the deleted_* items already carried it, so every response object backed by a table with a catalog now reports one
    • artist is deliberately left out: an artist reaches its catalogs through catalog_map and has no single one to report, so Artist::getCatalogId() returns 0

Changed (800000)

  • ALL
    • Passing secrets in the query string is deprecated for privacy (query values leak into server/proxy logs and browser history): the password on register/user_create/user_edit/catalog_add and the handshake auth key should be sent in a request body (or, for auth, the Authorization: Bearer header) — the query string keeps working for them, it is simply no longer the recommended way
    • Version rollover logic reworked for the new 5-version lineup: requests pinned to a disabled API6 now roll forward to API8 (version 7 is explicitly rejected as unsupported)
    • API8 JSON/XML output now sets real HTTP status codes for errors and empty results (404 for empty, Api::getHttpCode()-mapped codes for errors) — API3–6 always returned HTTP 200 with the error embedded in the response body
    • API8 uses updated action names for a few methods present under legacy naming in API3/4: index/list (not get_indexes), playlist_add (not playlist_add_song), user_edit (not user_update)
  • browse (API8 only)
    • browse: catalog is now an optional filter on album_artist, artist, album, album_disk and podcast instead of a required parameter. Send it to restrict the children to one catalog, omit it to get them from every catalog you can see. An album, disk or podcast belongs to a single catalog and an artist reaches its catalogs through catalog_map, so the parent object never needed a catalog to be addressed. API6 keeps the parameter mandatory, because Ampache7 serves that version too
  • download (API8 only)
    • Converted from a legacy static method to the MethodInterface pattern to support the new zip response; existing song/podcast_episode/search/playlist single-item redirect behavior is unchanged
  • user_edit (API8 only)
    • user_edit: maxbitrate is now bits per second (320000) instead of kbps (320), so every rate argument in the API uses the same unit. API6 and older keep kbps
  • ALL (units)
    • The unit of every rate argument is now documented. bitrate on download/random/stream has always been bits per second and maxbitrate on user_edit/user_update was kbps, but neither was written down in docs/openapi.json or the method tables
    • Subsonic/OpenSubsonic maxBitRate is unchanged and stays kbps, as the Subsonic 1.16.1 specification requires
  • ALL (internal)
    • JsonOutput/XmlOutput no longer fall back to API8 formatting for an unrecognized API version/method/format combination (e.g. JSON for API3, which was never supported) — this now throws instead of silently rendering as API8. Some v3/v4 error paths that used ad-hoc numeric error codes now use the same ErrorCodeEnum-based codes API5/6/8 already use, for consistency
  • API8 (JSON/XML parity)
    • v8 JSON and XML now return a matching field set for each object; several inconsistencies were unified: XML bookmark/share owner is now <owner> (was <user>), video and democratic no longer emit a duplicate <name> (use <title>), deleted podcast episodes use <podcast> (was a mislabeled <played>), and song_tags emits the full fixed field set in both formats
    • JSON user adds link (profile url, already present in XML) and returns fullname on your own /me request; JSON song_tags adds the song id; the users list uses a bare { "user": [...] } envelope with no total_count/md5

Removed (800000)

  • REST
    • GET smartlists/search is no longer documented. smartlist is not one of Search::VALID_TYPES, so the path could only ever return a Bad Request error. Use playlists/search (searches cover both playlists and smartlists)

Fixed (800000)

  • playlists/list/index/stats (API4 and above)
    • sort=last_count answered with an error instead of a list. The combined playlist and smartlist browse never carried the column it sorts on, though both tables have it
  • stats (API3)
    • A type other than newest, highest, frequent, recent or flagged answered with an error instead of random albums, unless a limit was sent
  • followers (API4 and above)
    • The returned ids are the accounts doing the following. They were the ids of the follow records, which line up with real accounts only by coincidence, so following and followers disagreed about the same relationship
  • ALL
    • Sorts a browse implemented but never offered, so asking for one did nothing: id on broadcast, private message, share, shoutbox and wanted, release_date on video, title on genre and mood, and genre on genre
    • The private message browse sorts on from_user and takes the equal/exact_match filters it already implemented, and the follower browse sorts on username, last_seen and create_date
    • wanted dropped its username sort, which named a column the table does not have
  • API5, API6
    • advanced_search: type=album_disk returned album disk ids rendered as songs, so a client read a disk id as a song id. Neither version has an album disk formatter, so both now return an empty result instead. search is affected too, being an alias. API8 returns the album disks. NOTE the same fix landed in Ampache7, which serves these versions as well
    • API3 and API4 are unchanged: neither validates the search type at all, so every unsupported type there already falls through to the song output
  • API8
    • Json8_Data/Xml8_Data skip an object that no longer exists rather than returning it as an entry of empty fields, and a missing object no longer ends the list it appeared in. NOTE the same fix landed in Ampache7 for API3-6, which it serves as well
  • preference_edit (API6 and API8)
    • preference_edit: default=1 now writes the server default — the system user’s value, and the value a new account is seeded from — instead of the calling user’s own value, and reports that value back. Existing accounts are still only changed by all=1. NOTE the same fix landed in Ampache7, which serves API6 as well
  • live_stream_create/live_stream_edit (API6 and API8)
    • live_stream_create, live_stream_edit: codec no longer has its digits stripped, so mp3 is stored as mp3 instead of mp. A radio station created or edited through the API before this keeps the truncated codec until it is set again. NOTE the same fix landed in Ampache7, which serves API6 as well