Commit Graph
100 Commits
Author SHA1 Message Date
sentriz ec97289d45 remove PCM options from transcode packages
as it turns out we won't need it
2022-11-16 19:40:40 +00:00
sentriz 7ab1612802 use os's path separator for playlist parse query 2022-11-16 19:40:40 +00:00
sentriz 986fcd2270 use a switch/case for get mime 2022-11-16 19:40:40 +00:00
sentriz 385a980b71 chore!: upgrade deps and require go 1.19 2022-11-16 19:40:40 +00:00
sentriz ba283021c1 print artist name instead of object in lastfm tracks error 2022-11-14 14:06:11 +00:00
Senan KellyandGitHub b7bf8cb70b update readme 2022-11-08 00:09:32 +00:00
sentriz 064bd587a8 update replaygain transcode profiles 2022-11-03 16:51:13 +00:00
sentriz 1f8de66fc0 2022-11-03 15:27:59 +00:00
sentriz 5c6855f671 update opus profiles output suffix and update aresample filter bitrate
related #250
2022-11-03 15:23:09 +00:00
sentriz 131e56b3e6 refactor(subsonic): don't make getMusicFolder a method of ctrl 2022-11-02 22:21:19 +00:00
sentriz b332ce8285 delete left over albums count query in getStarred2 2022-10-26 23:49:17 +01:00
Senan Kelly 25b39085d8 add FUNDING.yml 2022-10-18 22:26:08 +01:00
sentriz e4756aa560 reset scanList to empty map instead of nil 2022-10-12 18:14:47 +01:00
sentriz d47d5e17e9 fix(subsonic): return an error when no tracks provided in savePlayQueue 2022-10-08 17:23:12 +01:00
sentriz 8ee357b021 fix(listenbrainz): submit track recording ID instead of track ID
closes #240
2022-10-08 16:09:22 +01:00
sentriz bb83426816 feat(transcode): add opus 128 kbps profiles
"Opus at 128 KB/s (VBR) is pretty much transparent"

https://wiki.xiph.org/Opus_Recommended_Settings

related #241
2022-09-22 13:10:56 +02:00
sentriz bfb91c9e92 fix play queue query 2022-09-22 00:23:58 +01:00
sentriz f41dd0818b feat(subsonic): skip transcoding if request bitrate is the same as track bitrate
fixes #241
2022-09-22 01:18:58 +02:00
sentriz fdbb28209b fix(scanner): fix records with album name same as artist
and never use db.Where() with a struct

gorm was seeing a query like

    db.Where(Album{Left: left, Right: right})

but if the `left` variable was empty, gorm couldn't differentiate it with an empty field in the struct
so it generated SQL that we weren't expected

like

    SELECT * FROM albums WHERE right=?

instead of

    SELECT * FROM albums WHERE left=? AND right=?

fixes #230
2022-09-09 13:09:06 +01:00
sentriz 7d0d036f0b feat(lastfm): scrobble with duration 2022-09-06 17:48:56 +01:00
sentriz 6c94f194df rewrite "" search queries as `` 2022-07-22 14:13:01 +01:00
sentriz de540966bc add a note about symfonium.app to the readme 2022-07-21 20:18:54 +01:00
sentriz 1a1f39f4e8 fix(subsonic): return song artist ID, album and song genres from search3
related: #229
2022-07-21 19:58:26 +01:00
sentriz 4557a4ec33 rewrite "" search queries as ``
closes #229
2022-07-21 14:57:37 +01:00
sentriz a9d393350a fix(scanner): better detect years given extraneous year tags 2022-07-21 13:06:32 +01:00
sentriz 2afc63f64a add a test for updated album genre tags
related #225
2022-05-19 00:49:20 +01:00
sentriz d6d1fe26ba refactor(scanner): remove unused genreIDs arg 2022-05-19 00:46:17 +01:00
sentriz 53a4247dfd feat(subsonic): add year and genre fields to track-by-folder response
fixes #223
2022-05-18 22:01:47 +01:00
sentriz 668c334f45 remove redundant lastfm user session check 2022-05-18 22:01:00 +01:00
sentriz 4fce8e67ce log bad scrobble responses
related #219
2022-05-15 15:02:15 +01:00
sentriz e883de8c95 fix(listenbrainz): set json header
closes #216

related https://github.com/sentriz/gonic/issues/216
related https://github.com/krateng/maloja/issues/141
2022-05-02 14:52:31 +01:00
sentriz dc4d9e4e96 feat(subsonic): add detailed logging about requested audio
closes #212
2022-04-21 01:31:37 +01:00
sentriz 6bebceccd9 delete guess expected size feature
it it doing some really bad guesses for opus files
2022-04-21 00:47:39 +01:00
sentrizandBrian Doherty 4658d07273 fix(lastfm): make a better guess at callback protocol when incoming connection is TLS
closes: #213

Co-authored-by: Brian Doherty <brian.r.doherty@gmail.com>
2022-04-20 23:11:20 +01:00
sentrizandBrian Doherty 611bc96e29 fix(podcast): add error case for when DownloadEpisode is called via API and podcast is already downloaded
closes: #213

Co-authored-by: Brian Doherty <brian.r.doherty@gmail.com>
2022-04-20 23:11:13 +01:00
sentriz 8b803ecf20 refactor: move shared packages up a level 2022-04-13 01:10:46 +01:00
sentriz 165904c2bb feat(transcode): add a generic transcoding package for encoding/decoding/caching 2022-04-13 01:10:46 +01:00
sentriz fd211d706a refactor(countrw): move to iout 2022-04-12 23:38:44 +01:00
sentriz d7655cb9d1 fix(subsonic): change order of fromYear toYear query
closes #208
2022-04-02 18:04:57 +01:00
sentriz 01747c8940 fix(scanner): make sure we have an album artist before populating track
if we return early before i == 0 we mightn't have one

fixes #209
2022-04-02 18:03:14 +01:00
sentriz a8e50c4a01 don't log listenbrainz scrobble errors
we're already logging at the subsonic level
2022-03-24 00:11:11 +00:00
sentriz 2440e69689 feat(subsonic): log error responses 2022-03-23 23:41:31 +00:00
sentriz 78853ed62b format dockerfiles 2022-03-23 23:41:08 +00:00
sentriz f2143e32ef fix(scanner): respect "is full" setting 2022-03-23 20:41:55 +00:00
sentrizandBrian Doherty 1ab47d6fbe feat(subsonic): update play stats when scrobbling
closes: #207

Co-authored-by: Brian Doherty <brian.r.doherty@gmail.com>
2022-03-22 20:39:57 +00:00
sentriz 5155dee2e8 feat(countrw): add countrw package 2022-03-10 00:49:05 +00:00
sentriz c7862761bd support parsing floats 2022-03-10 00:49:05 +00:00
sentriz 74c955b723 refactor: ioutil -> io 2022-03-10 00:49:05 +00:00
sentriz 5420f01089 refactor(mockfs): automatically clean up with t.Cleanup() 2022-03-02 15:19:12 +00:00
sentriz 9d406afb1f refactor(scanner): take seed from fuzzer 2022-03-02 09:30:51 +00:00
sentriz d6492c1521 refactor(scanner): switch ext() path 2022-02-27 20:56:53 +00:00
sentriz e56f64a758 feat(subsonic): sort artist album list
fixes #197
2022-02-25 21:00:24 +00:00
sentriz bb9b52b960 try to save some extra writes of albums 2022-02-25 20:46:42 +00:00
sentriz 401c17b355 add a test for a compilation album without album artist tags
related https://github.com/sentriz/gonic/issues/185
related https://github.com/sentriz/gonic/issues/185#issuecomment-1050092128
2022-02-24 19:15:37 +00:00
sentriz d3d2ed3469 add a test for scan tag errors 2022-02-24 19:15:37 +00:00
sentriz 599636663d support returning errors from mockfs tags 2022-02-24 19:15:37 +00:00
sentriz 19bc7f16aa add test for deleting artists 2022-02-24 19:15:37 +00:00
sentriz f7f4b8b2cc feat(scanner): add fuzzing test 2022-02-24 19:15:37 +00:00
sentriz 10e8d18a0f refactor: return scan context from scanner 2022-02-24 19:15:37 +00:00
sentriz b0d5861d10 feat(mockfs): add DumpDB method 2022-02-24 19:15:37 +00:00
Senan Kelly 4176b9e9d4 Update README.md 2022-02-18 02:24:46 +00:00
sentriz c69d45fd4e run migrateAlbumRootDir again 2022-02-12 18:11:32 +00:00
sentriz 3dc838d36f delete old album index even if we found the new one
fixes #190
2022-02-12 16:53:06 +00:00
sentriz e64524e09e remove debug sql print 2022-02-12 14:10:59 +00:00
sentriz 3d377372f7 chore: upgrade deps 2022-02-09 19:50:28 +00:00
sentriz a74b5a261c feat: render local artist images with no foreign key 2022-02-09 19:23:15 +00:00
sentriz a0b9934d08 revert guessed artist folder changes
there seems to be a performance issue somewhere
2022-02-09 19:23:15 +00:00
sentriz 24d64e2125 fix: set ON DELETE SET NULL to artists.guessed_folder_id removing folders 2022-01-18 22:59:05 +00:00
sentriz b280e8d256 fix(scanner): fix linting Ctim.Sec/Ctim.Nsec on 32 bit systems 2022-01-10 18:15:25 +00:00
sentrizandb-levin 14a2668426 feat: use album create time for home ui and album listings
closes #182
closes #135

Co-authored-by: b-levin <windrider417@gmail.com>
2022-01-07 11:58:53 +00:00
sentriz 9c1f9784be chore: upgrade sqlite 2022-01-05 13:50:55 +00:00
sentriz 907c94c595 chore: update deps 2022-01-05 12:42:24 +00:00
sentriz c0ebd26422 fix: show artist covers (raw url in artist info, cover id elsewhere) via scanned guessed artist folder
closes #180
closes #179
2022-01-04 22:54:11 +00:00
sentriz 27ac8e1d25 fix: add stub getStarred views to shut up refix 2021-12-20 17:06:09 +00:00
sentriz d9e8bd0d65 refactor(scanner): follow symlinks, move context, update mockfs
related #174
2021-12-20 16:51:26 +00:00
sentriz 62ccf01a3a unfunny the comments 2021-12-20 16:51:26 +00:00
sentriz f9133aac91 fix(subsonic): route settings.view -> admin home 2021-12-20 16:51:26 +00:00
sentriz 155c8b4a8b readme: add multi folder support docs
closes: #172
2021-11-20 19:00:34 +00:00
sentriz 1b013e73cf delete scanner ErrStatingItem 2021-11-20 18:18:32 +00:00
sentriz 206db741b3 chore: bump docker go/alpine versions 2021-11-20 18:09:33 +00:00
sentriz 3d4dd9d7ad add some scanner benchmarks 2021-11-20 18:09:33 +00:00
sentriz 1d1ab116cd fix: make sure open cover and audio files are closed after use 2021-11-20 18:09:33 +00:00
sentriz e10c8bafdf refactor: remove godirwalk dep 2021-11-20 18:09:33 +00:00
sentriz fc50f01de3 check ServeStream track errors 2021-11-14 16:56:10 +00:00
sentriz 7ec6440ed2 fix: render artistId in track types
fixes #170
2021-11-12 20:14:57 +00:00
sentriz 870bec7d56 add scanner.scanDir 2021-11-10 19:12:39 +00:00
sentriz 43a929c36a make multierr errors private 2021-11-10 19:12:39 +00:00
sentriz 0c790442f4 fix: show artist album count when searching by tags 2021-11-10 19:12:39 +00:00
sentriz 48c34fdffc fix(ci): set golangci-lint timeout 2021-11-10 00:34:38 +00:00
sentriz b2388e6d85 feat: log all folders while scanning 2021-11-10 00:22:25 +00:00
Senan KellyandGitHub 96f693f4e4 make musicFolderIds ints (#169)
* make `musicFolderId`s ints

https://github.com/sentriz/gonic/issues/50#issuecomment-963257103
https://github.com/einsteinx2/iSubMusicStreamer/blob/006c1dafee6b926fde9d775cb0e64011a4662853/Classes/Models/API%20Models/MediaFolder.swift#L16

related #50

* add a test for multi folders and reused artists
2021-11-09 00:23:32 +00:00
sentriz a59c030385 add a hint about regenerating ctrlsubsonic tests 2021-11-08 19:32:27 +00:00
sentriz 1d9883edbc chore: upgrade deps 2021-11-06 21:56:01 +00:00
sentriz 40cd031b05 feat: add multi folder support
closes #50
2021-11-06 21:56:01 +00:00
sentriz fa587fc7de refactor: update scanner, scanner tests, mockfs
closes #165
closes #163
2021-11-06 21:55:46 +00:00
sentriz b07b9a8be6 fix: don't send listenbrainz playing_now and submitted_at at the same time
fixes #168
2021-11-06 16:19:13 +00:00
sentriz 4781a744ca log listenbrainz scrobble response 2021-11-06 15:21:33 +00:00
sentriz 98cab93557 add some logging to ServeScrobble 2021-11-05 17:37:55 +00:00
sentriz c31b3b8d1f use time.Time in scrobbler interface 2021-10-13 06:30:14 +01:00
sentriz df85d82137 params: add time helper 2021-10-13 06:30:14 +01:00