Commit Graph
443 Commits
Author SHA1 Message Date
yaemiku 88edd8b546 Merge branch 'master' into ldap_auth 2026-03-11 22:19:10 +01:00
Eric Munson 1b770c95d8 feat(subsonic): make error codes match Open Subsonic spec (#671)
There were a number of error codes being returned that did not match the
the code given by the spec. Primarily this was the use of error code 10
(missing input parameter) when 70 (data not found) was the more
appropriate return. Though several uses of 10 are actually 0 (internal
server or unspecified error).

Signed-off-by: Eric B Munson <eric@munsonfam.org>
2026-03-10 19:56:47 +00:00
sentriz e535e7888c fix(subsonic): update homepage URL casing
closes #664
2026-03-09 14:49:01 +00:00
Kynn | CherryblueandSenan Kelly 5e916d0f4c feat: support track level year tags (#661)
* [ PR Year @ Track-level ] This resolves issue #549

* Update db/migrations.go

Co-authored-by: Senan Kelly <senan@senan.xyz>

* [ PR #661 ] Fixes proposed by Sentriz (file indentation, simpler call to functions)

* [ PR #661 ] Fix File indentation for construct_by_folder

* [ PR #661 ] Set known tracks year field to their parent (album) year value ; until next deep scan.

* [ PR #661 ] Fix database field names in sql query

* Update db/migrations.go

Co-authored-by: Senan Kelly <senan@senan.xyz>

* Update db/migrations.go

Co-authored-by: Senan Kelly <senan@senan.xyz>

---------

Co-authored-by: Senan Kelly <senan@senan.xyz>
2026-02-24 21:00:11 +01:00
yaemiku 9e331dd459 Move LDAP store out of the global variable 2026-02-15 05:01:16 +01:00
yaemiku ae99e76fc7 Merge branch 'master' into ldap_auth 2026-02-14 03:58:30 +01:00
yaemiku 4837448092 Merge remote-tracking branch 'origin' into ldap_auth 2026-02-14 03:54:36 +01:00
sentriz 4fff4185b5 refactor(specid): have Lookup return *specid.ID 2026-02-07 18:26:46 +00:00
sentriz 9407450660 fix(subsonic): return artist as track artist in TrackChild
fixes #654
2026-02-07 17:18:52 +00:00
sentriz 103a048e84 fix(playlist): fix regression in playlist ID handling
closes #655
2026-01-30 09:53:00 +00:00
sentriz 04ff7f3c33 fix(subsonic): correct spec typos
closes #653
2026-01-22 19:23:03 +00:00
sentriz e407421032 always return disc titles 2026-01-21 17:45:33 +00:00
sentriz 0377bfa696 feat(subsonic): return disc titles 2026-01-20 19:32:24 +00:00
sentrizandMatteo aad729e3ea feat: add support for playlist cover art on filesystem
closes #650

Co-authored-by: Matteo <girardi.matteo.dev@gmail.com>
2026-01-19 17:56:10 +00:00
snoutieandsnoutie db9aa2b2e3 feat(subsonic): implement getSimilarSongs for artists and albums (#649)
* getSimilarSongs for artists and albums

* Use preloaded album tracks

* Return after no similar tracks have been found for album

* Move controller to params

* Move getSimilarSongsFrom functions

* Fix getSimilarSongs returning similarSongs2 & refactor

---------

Co-authored-by: snoutie <snoutie@achtarmig.org>
2026-01-18 14:44:04 +00:00
sentriz 469649935e fix(db): use separate DSN for both drivers 2025-12-05 17:52:29 +01:00
sentriz c2ebe96313 feat(subsonic): allow non admins to download podcast episodes
closes #623
2025-11-05 11:41:55 -03:00
yaemiku eccc957fd1 Merge branch 'master' into ldap_auth
Nightly Release / Check latest commit (push) Successful in 6s
Nightly Release / Lint and test (push) Has been skipped
Nightly Release / Build and release Docker image (push) Has been skipped
2025-10-12 11:06:18 +02:00
Senan Kelly 1af4ce3587 feat(subsonic): keep original cover file format when caching (#609)
related #11
2025-10-10 22:19:29 +00:00
sentriz d66814bfd1 feat(subsonic): support embedded track level cover art
related #11
2025-09-30 15:08:46 +01:00
sentriz ec7cffdd57 feat(subsonic): support embedded cover art
closes #11
closes #556
2025-09-29 18:24:37 +01:00
sentriz 2fcba12650 wire tag.Reader to subsonic Controller 2025-09-29 18:24:10 +01:00
sentriz aba758f2ba feat(gonic): use wrtag/normtag for nag normalisation 2025-09-29 16:02:57 +01:00
sentriz 3909e9b5bd feat(subsonic): return genres for getAlbumListTwo2
fixes #605
2025-09-28 18:38:53 +01:00
sentriz eb0d8fd1c7 feat(subsonic): also read unsynced lyrics from .txt files and tag metadata
closes #593
2025-09-23 21:29:20 +01:00
yaemiku 6fba25ca0b ldap login logic, subsonic api hex encrypted password 2025-09-21 08:02:10 +02:00
yaemiku e5c192c83c Merge branch 'master' into ldap_auth 2025-09-21 06:37:41 +02:00
sentriz 3db183bda4 feat(subsonic): better support for internet radio and podcast episodes in jukebox
fixes #572
2025-09-18 15:45:34 +01:00
sentriz 8ac8779b92 fix(subsonic): restore disc/track ordering in getMusicDirectory
fixes #597
2025-09-18 12:42:14 +01:00
sentriz 1bf4a5b0c1 chore(deps)!: bump to go1.25
fixes #594

Release-As: 0.18.0
2025-09-06 23:38:04 +01:00
./daniele db97bc753e feat(subsonic): add support for lyrics (#519)
* Add songLyrics extension since the getLyricsBySongId method is implemented

* Add support for lyrics

* Add check for getLyrics function

* fix typo

* chore: fix tests

* fix(lyrics): if lrc is formatted with empty spaces remove them

* fix(lint): use NewError correctly

bump ts
2025-08-26 11:09:00 +01:00
sentriz 5916a7fe7b feat(subsonic): replace html2text with bluemonday
fixes #591

Release-As: 0.17.1
2025-08-26 00:53:33 +01:00
sentriz 58d54c287c feat(subsonic): fallback to filename when title is missing tags
closes #541
2025-08-21 23:43:30 +01:00
Richard Samuels c6d87515c6 fix(subsonic): populate ArtistID and AlbumID for playlists (#567)
* fix(playlist): populate ArtistID and AlbumID

* update keys for CI lint config

* fix lint config again

* fix golden samples

* prettier testdata

* fix merge
2025-08-21 22:35:55 +00:00
sentriz fa434cc176 chore(ci): bump golangci-lint 2025-07-30 12:48:04 +01:00
sentriz 3fc9d5dcb5 fix(subsonic): gracefully handle missing playqueue items 2025-07-07 13:39:26 +01:00
sentriz 29b754973d feat(subsonic): expose album isCompilation and releaseTypes 2025-07-06 22:01:24 +01:00
Eric Munson e3dc188773 fix(subsonic): skip bookmarks for missing items instead of failing (#580)
Currently if a bookmark exists for an item that does not exist in the
db, either because it has been removed or it never did, the user is
prevented from retrieving any bookmarks. We can be in this state if
media has moved or been deleted, but also because the createBookmark
endpoint does not verify the item id provided.

This patch makes the getBookmarks endpoint ignore bookmarks for missing
items.

Fixes: https://github.com/sentriz/gonic/issues/578

Signed-off-by: Eric B Munson <eric@munsonfam.org>
2025-05-27 23:18:04 +01:00
sentriz 7b19101a34 feat(subsonic): allow search albums with MBID 2025-05-26 20:30:20 +01:00
gabe 2d4111dfc5 feat(subsonic): allow search with MBID (#579)
* feat(search): use search2/3 query to additionally search track MBID

* feat(search): use strict equality for MBID search

don't compare substrings for now to reduce unwanted results based on
MBIDs

might also make search more efficient

* feat(db): add migration to create index on MBID

for MBID search

* tweak(search): remove unnecessary trim on query
2025-05-26 14:38:25 +00:00
Gonzalo 3252884414 fix transcoding typos (#573)
This fixes a typo on a log message, and another on a function name.
2025-03-27 10:50:03 +00:00
Vijay Dubb 63a420d2d3 feat(subsonic): support more podcast metadata and podcast bookmarks (#569)
* Migrate podcast episodes database entries.

* Expose album, artist, and image for podcast episodes.

* Update bookmarks to show podcast episodes.

* Fix lint error.

* Remove OriginalImageURL field.
2025-03-24 13:43:06 +00:00
mikuta0407 39df00ef8f fix(subsonic): order some browse-by-tag responses
closes #512
2025-02-15 16:16:10 +00:00
Nadia Santalla ac798ac2d2 fix(playlist): fix non-admin users not being able to create playlists (#524)
* fix(playlist): fail early if playlist path is a directory

* fix(playlist): check error before assuming playlist loaded
2024-09-15 14:57:23 +00:00
Daniel Hall d9facdcca6 Merge branch 'master' into ldap_auth 2024-09-08 10:59:37 -07:00
sentriz bbe16b7555 feat(subsonic): bump image cache expiration 2024-09-03 12:43:10 +01:00
betapictoris f812c15fa1 Merge branch 'master' into ldap_auth 2024-06-10 23:00:54 -07:00
sentriz 0e45f5e84c feat(subsonic): expose replaygain tags 2024-05-30 11:43:45 +01:00
Daniel Hall 6ca68b2c26 Only allow use of subsonic API with one auth method 2024-04-07 10:43:07 -07:00
Daniel Hall b36f26e32a Have LDAP read from config 2024-04-07 10:18:00 -07:00