Ampache
Web based audio/video streaming application and file manager
Alternative to: spotify, apple music, youtube music
6.0.0
2023-08-286.0.0
php8.2 0ca3eef0e3b817d95f4549eb36c2e8e7 ./ampache-6.0.0_all_php8.2.zip 9e7d52636629d18e44b07651a5878ae8 ./ampache-6.0.0_all_squashed_php8.2.zip
php8.1 595b1d320d3d40e697283a82983d24af ./ampache-6.0.0_all_php8.1.zip db5bf82db34262d6859d4dbf003406d5 ./ampache-6.0.0_all_squashed_php8.1.zip
php8.0 1dd0c0eaf6912899624477116d9469e6 ./ampache-6.0.0_all_php8.0.zip b216dbd29680853511db8053361b2171 ./ampache-6.0.0_all_squashed_php8.0.zip
UNSUPPORTED php7.4 (will be built until it can’t be done any more) 5dcdffa8613c9c3156dae4cec7afa92c ./ampache-6.0.0_all_php7.4.zip d1b75cd3220b79ab329f87017d83f752 ./ampache-6.0.0_all_squashed_php7.4.zip
Ampache 6.0.0
NOTE For database update 600005; please consider using the CLI update command (php bin/cli admin:updateDatabase -e)
For information about Admin and backend changes check out Ampache6 for Admins
For information about what you’ll see and changed behavior’s check out Ampache6 for Users
You can now use a permanent session token for streaming. (check out the wiki!)
You can find example Subsonic responses from an official server and Ampache server here
Added
- Translations 2023-08
- Add
streamtokento user objects, allowing permanent stream links - Allow deleting a user API key Stream Token and RSS token’s
- Allow Admin users to browse all user uploads
- Create Dockerfilephp82
- Add custom
listenbrainz_api_urlto listenbrainz plugin - Add header to allow browser cache on waveform
- Allow custom JS using
/lib/javascript/custom.js - Tell a user when they can’t see any shares instead of a blank page
- Allow adding live_stream’s to playlists
- Cache transcode format for file types instead of processing for each call
- Add %s (Release Comment) as a translatable tag string
- Add the Owner to playlist rows
- Button and color Light theme fixes for the webplayer
- Get album info from last.fm for similar & related objects
- Try to bypass bad xml for podcast feeds if it can’t load
- Add more tables to the missing table checks
- Remove all reference to deleted database updates (not required)
- Add error info to debug from failed email attempts
- Browse
- Add
album_artistandsong_artistas valid browse types - Add many additional (and missing) sort types for objects
- Add
- CLI
- New installer command
bin/installer htaccess(recreate .htaccess files from .dist) - Add playlistid to export:playlist (export a single playlist instead of all of them)
- smartplaylist export. e.g.
bin/cli export:playlist ~/playlists/ smartlists - Add -w|—web to export:playlist (Get a play URL instead of the file name)
- Add -t|—garbage to run:updateCatalog (Separates table updates from Add / clean / Verify actions)
- New cli command
bin/cli run:updateCatalogFolder(run catalog actions on a catalog subfolder) - When an error occurs using
bin/cli admin:updateDatabaseprint out the SQL and the update function
- New installer command
- webplayer
- Add a button next to the playlist to allow looping after the last song
- If you enable playlist loop do not remove previous tracks
- Database 600038
- Add preference
webplayer_removeplayed, Remove tracks before the current playlist item in the webplayer when played - Drop channel table
- Add
total_skipto podcast table - Add
diskto song table - Create album_disk table and migrate user ratings & flags
- Migrate multi-disk albums to single album id’s
- Add
disk_countto album table - Fill album_disk table update count tables
- Rename
artist.album_group_count=>album_disk_count - Drop
diskfrom thealbumtable - Rename
user_dataalbum keys - Add
album_diskto enum types forobject_count,ratingandcache_object_counttables - Add
song_artistandalbum_artistmaps to catalog_map - Add ui option
api_enable_6to enable/disable API6 - Add
versionto the album table - Add
streamtokento user table allowing permalink music stream access - Add
object_type_IDXto artist_map table - Add
object_type_IDXto catalog_map table - Drop
user_playlisttable and recreate it - Extend
timecolumn for the song table - Extend
timecolumn for the stream_playlist table - Add
upload_access_levelto restrict uploads to certain user groups - Add preference
show_subtitle, Show Album subtitle on links - Add preference
show_original_year, Show Album original year on links (Separate from use_original_year) - Add ui option
show_header_login, Show the login / registration links in the site header (Separate from simple_user_mode) - Add user preference
use_play2, Use an alternative playback action for streaming if you have issues with playing music - Add
bitrate,rate,modeandchannelsto thepodcast_episodetable - Extend
object_typeenum list onratingtable - Convert
object_typeto an enum onuser_flagtable - Convert
object_typeto an enum onimagetable - Add
enabledto podcast_episode table - Update user
play_sizeand catalogsizefields to megabytes (Stop large catalogs overflowing 32bit ints) - Update
access_listin case you have a badusercolumn
- Add preference
- Config version 67
- Drop Channels from config
- Reset the art_order defaults (replace lastfm with spotify)
- Set a default
album_art_min_widthandalbum_art_min_height(30px) - Add
album_diskto allow_zip_types - Add
fallback_urlfor CLI actions which can’t detect the URL from web requests - Update
additional_genre_delimitersto"[/]{2}|[/\\|,;]"(Split on ”//”, ”/”, "", ”|”, ”,” and ”;”) - Update your
encode_args_opussettings
- Search
- Add
album_diskas a search type (uses album rules) - Add
song_genreto album and artist searches - Add
possible_duplicate_albumto song search - Add
my_flaggedto song search - Add
my_flagged_albumto song search - Add
my_flagged_artistto song search - Add
mbid_artistto album search - Add
subtitleto album search - Add
barcodeto album search - Add
catalog_numberto album search - Add
smartplaylistto album search - Add
duplicate_tracksto album and song search (MIN & MAX id for song search) - Add
episode_countto podcast search - Add
total_skipto podcast search - Add
played_timesto podcast and podcast_episode search - Add
skipped_timesto podcast and podcast_episode search - Add
played_or_skipped_timesto podcast and podcast_episode search - Add
last_playto podcast and podcast_episode search - Add
last_skipto podcast and podcast_episode search - Add
last_play_or_skipto podcast and podcast_episode search - Add
playedto podcast and podcast_episode search - Add
myplayedto podcast and podcast_episode search - Add
recent_playedto podcast and podcast_episode search - Alias
possible_duplicate_album=>possible_duplicatefor album search - Alias
album_genre=>genrefor album search - Alias
mbid_album=>mbidfor album search - Alias
mbid_artist=>mbidfor artist search - Alias
song_genre=>genrefor song search
- Add
- webplayer
- Enable restart on democratic or random play
- Allow removing played tracks on next
- Subsonic
- API 1.16.1 support
Changed
- Moved composer to php8.2 minimum by default. Use
composer_old.jsonfor older PHP versions - Identify the active git branch when checking for updates
- Automated the JS minify on jplayer and prettyPhoto
- Enforce Admin (100) for system settings
- Change all the Information pages into browses (Default to Album/Album Disk)
- Add extra types to the Information pages
- Combined all Albums into single Album objects
- Remove Channels from Ampache (Use icecast instead)
- Download url parameter order matching “client, action, cache”
- Add
barcode,catalog_numberandsubtitleto Album::check() for comparison checks - Rework user_playlists (used for Now Playing & Play Queue operations)
- Workaround time for dsub playqueue by converting to UTC
- An upload_catalog should only be a music catalog
- Redirect Democratic and Random Play actions with a http 308 response (https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308)
- Add username column to playlist and search rows and allow sorting
- Show empty properties on song pages
- Split filename and folder properties on song and video pages
- Ignore properties and data for guest users that won’t have this data
- When pulling user data don’t pull the password
- Uploads are allowed based on the
upload_access_level(When disabled; access 25 is required) - When transcoding a file change it’s name parameter to the converted file type
- Only show user pages for non-system users
- Large template cleanup
- Reduce a lot of repeated actions, queries and processes
- Update Requests module to WpOrg\Requests
- Show 20 genres in Song, Artist & Album edit windows (up from 10)
- Process stream output and then send the content to the player
- Play urls will rename the file name to the transcode output format
- open RSS links in a new tab
- Dashboard pages have Newest on top now
- Updated the default
.htaccess.distfiles - Only allow one password reset from ‘Lost Password’ per hour
- Only reset the password from ‘Lost Password’ when the e-mail is successfully sent
- Composer
- Updated jquery to 3.5
- Updated php-cs-fixer to 3.10+
- CLI
- Moved catalog map and update functions out of run:updateCatalog clean, add and verify commands (use -t|—garbage to put them back)
- Make admin:updateDatabase display more information about the version and required changes
- Chunk the cleanup:sortSongs to give you more information
- Search
- Search by the list owner when a user is required (System lists still search as you)
- Split the Search class into smaller pieces to make it a bit less daunting
- Return everything when searching by no or invalid rules
- Faster
smartplaylistsearches for song search (Does not respect limits for those subsearches)
- webplayer
- Only send songs (for now) to the ‘Add all to playlist’ button
- Added an option
loopBackwhich restarts the playlist after finishing
- Subsonic
- Since 1.14.0 the newly created/updated playlist is returned. In earlier versions an empty
<subsonic-response>element is returned. - Pass the authenticated user to method calls
- Since 1.14.0 the newly created/updated playlist is returned. In earlier versions an empty
Removed
- Dropped the
-releasepart of releases. - Combined a lot of duplicate properties, functions and process all over the place
- Travic CI config file
- For System preferences ‘Apply to All’ and ‘Access Level’ have no effect
- Combined a lot of duplicate functions into one
- Art from share page
- Remove the auth parameter from image urls
- Option to ‘Force Democratic Play’ has been removed from the config page
- Check the wiki for details
- Remove all reference to deleted database updates (not required)
- Plugins
- The Movie Database (TMDB) plugin
- Subsonic
- Custom messages for subsonic errors subsonic.org
Fixed
- Work around for possible release string errors (future releases will drop “-release”)
- Ignore case in genre comparison
- Hide Upload links if you can’t access the catalog
- Recently played for non-user calls
- Found a few dynamic properties on objects
- Bugs around the setting of the Various album_artist when the album_artist is null
- Show test errors correctly when you can connect to the server but don’t have a database
- When using LDAP check for DN and username on group membership
- Browse filtering for catalogs and podcast_episodes was a bit light
- Filterbox actions not loading correctly
- Song was not checking for channel data
- Ampachechartlyrics plugin object data might not be set
- Force cast on shout data that may be null
- Handle a bad object_id on rss requests
- Add missing doctype for html pages
- Updating Album objects with null time
- Missing ” in html for Captcha
- Record download stats for song, video, podcast_episode
- Update page title using JS to follow the user
- Correct IP check behind proxy
- Fallbacks for user data that may not exist yet or is empty
- Remove hidden tags from catalog map
- Missing Podcast from
object_counttable - Album::check() look for null prefix’s so you don’t get duplicates
- Don’t look at transcode_cache when downloading
- Don’t overwrite custom upload tags with the file tags
- Streaming parameters may be lost depending on your link
- Catalog actions are only performed on their media type (e.g. don’t look for videos on music catalogs)
- Missing translated catalog fields (e.g. %a %c)
- Filter by allowed catalogs in more places
- Dashboards would show very similar data
- Simplify all statistical_graphs checks
- WebDav browsing issues
- Ampache Debug page didn’t have all the possible boolean values to make pretty
- Do not scrub title for RSS output
- Repeating random play URL’s could skip the first song
- Send the final url for play_url’s instead of figuring it on the fly
- Don’t verify Podcast Episodes that don’t have a file
- Update song channels on tag update
- ACL creation may lock you out without a system user
- Recently played on the show_user pages was pulling things from other users and ignoring preferences to hide
- Missing translate on update_album_artist looking for Orphans
- Config
- Colon instead of semi-colon
- Corrected default value comments
- CLI
- export:playlist command help was incorrect
- Get the website address from
fallback_url - run:updateCatalogFolder and run:updateCatalogFile would always verify
- webplayer
- Visible shadow hightlight and replaygain button for light theme
- Added back next / back keys in the playlist js
- Search
- Searching by different aliases could be ignored
- SQL for Artist
catalogsearches - Don’t try to search on bad rules. (falls back to empty rules which will show all songs)
- JS could not load your search if you were using a rule alias
- Subsonic
- Forward the client ip instead the server ip using rewrite
- Sharing some types of object
- Filtering user and password
API 6.0.0
Stream token’s will let you design permalinked streams and allow users to stream iwhtout re authenticating to the server. wiki
Added
- API5::playlist_songs: Add
randomto get random objects filtered by limit - API6 (Based on API5)
- Added podcast id and name to
podcast_episodeobjects - API6::browse: List server contents in a directory-style listing (Music, Podcast and Video catalogs)
- API6::list: Replace get_indexes with a faster lookup and similar parameters returning
id,name,prefixandbasename - API6::catalog_add: Create a catalog (Require: 75)
- API6::catalog_delete: Delete a catalog (Require: 75)
- API6::catalog_folder: Perform actions on local catalog folders. (catalog_file but for folders) (Require: 50)
- API6::live_stream_create: Create a new live stream (radio station)
- API6::live_stream_edit: Edit a live stream
- API6::live_stream_delete: Delete a stream by ID
- API6::register: Allow users to register an account (if enabled)
- API6::playlist_create: Return an error if the playlist name already exists for that user
- API6::playlist_songs: Add
randomto get random objects filtered by limit - API6::user_edit (previously user_create):
- Add
groupparameter to pick a catalog filter group - Add
fullname_publicto enable/disable using fullname in public display - Add
reset_apikeyto reset a user Api Key - Add
reset_streamtokento reset a user Stream Token - Add
clear_statsreset all stats for this user be very sure about this one!
- Add
- Add
prefix(Prefix for Full Name) to album & artist responses - Add
basename(Name without prefix) to album & artist responses - Add
bitrateto Democratic objects - Add
formatto Song and Democratic objects - Add
stream_format,stream_bitrate,stream_mimeto Song objects (This is the transcoded output for a stream) - Add all mapped artists to song and album objects (JSON added an
artistselement) - Add
bitrate,stream_bitrate,rate,mode,channelsto Podcast Episode objects
- Added podcast id and name to
- JSON responses
- Cast bool fields to
trueandfalseinstead of “1” & “0” - Add
total_countto responses to give clients an idea of the total possible objects
- Cast bool fields to
- advanced_search
- Add
song_genreto album and artist searches - Add
possible_duplicate_albumto song search - Add
mbid_artistto album search - Add
barcodeto album search - Add
catalog_numberto album search - Add
smartplaylistto album search - Add
duplicate_tracksto album and song search (MIN & MAX id for song search) - Alias
possible_duplicate_album=>possible_duplicatefor album search - Alias
album_genre=>genrefor album search - Alias
mbid_album=>mbidfor album search - Alias
mbid_artist=>mbidfor artist search - Alias
song_genre=>genrefor song search
- Add
Changed
- Api6
- Renamed
user_updatetouser_edit(user_update still works and will be depreciated in API7)
- Renamed
- Api5
- Add backwards compatible
user_editmethod to point touser_update
- Add backwards compatible
- ALL
- Add all possible plugin preferences to the system list so they can’t be deleted
- Albums with no album_artist may now return 0 artist called ‘Various’
- Don’t send AlbumDisk objects to the API
- Send the authenticated user to all method calls
- XML responses
- Api6 XML success and error response messages are put in a
messageelement (like json) - For data responses id is the only attribute and everything else is an element
- Name was not set as an attribute OR an element so now it’s always an element
- Return original XML output (that may be malformed) when loadxml fails.
- Api6 XML success and error response messages are put in a
- Api6::get_indexes: This method is depreciated and will be removed in Ampache 7.0.0 (Use Api6::list instead)
Removed
- Api6
preciseratingremoved from all objects (use rating)- Remove non-song MBIDs as not relevant to the object
- album_songs remove
exactas a parameter - stream remove
podcastas a validtypevalue
- preference_create: don’t allow creating ‘system’ preferences
- Warning of depreciated methods from API5 have been removed from API6
- Api6::tag
- Api6::tags
- Api6::tag_albums
- Api6::tag_artists
- Api6::tag_songs
Fixed
- ALL
- advanced_search methods were breaking with various offset and limits
- Api6 JSON
- Share and Bookmark object id’s were not strings
- Api3
- Never send 0 ratings. They should always be null (e.g.
<rating/>) - Artists method parameters were incorrect
- Never send 0 ratings. They should always be null (e.g.