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>
* [ 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>
* 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>
* 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
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>
* 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