Commit Graph

36 Commits

Author SHA1 Message Date
Senan Kelly
e9accfb71f refactor: refactor controllers and use standard library (#385) 2023-09-30 21:40:51 +00:00
sentriz
e0b1603c00 feat(subsonic): update track play stats on scrobble instead of stream 2023-09-28 20:58:59 +01:00
Senan Kelly
f119659acf refactor scrobblers (#383)
- no need to explicitly pass api key
- move packages up a level
- catch more errors by extended scrobbler interface with IsUserAuthenticated
- move interface to server
- delete scrobbber package, clients implicitly satisfy Scrobble

this also helps with gonic-lastfm-sync
2023-09-27 00:13:00 +00:00
sentriz
e3dd812b6c feat(ci): add a bunch more linters 2023-09-22 19:05:55 +02:00
sentriz
05a81a809a move artistinfocache 2023-09-14 00:41:47 +01:00
sentriz
c374577328 feat(subsonic): cache and use lastfm responses for covers, bios, top songs 2023-09-13 21:30:57 +01:00
sentriz
b3199de967 remove a whole pile of startup indirection
fixes #360
2023-09-12 00:41:01 +01:00
Gregor Zurowski
dbcccdc811 add initial Last.FM tests (#329)
* Move model into separate file

* Separate Last.FM client and scrobbler

* Use separate Last.FM client and scrobbler

* Fix playcount attribute name

* Add initial test for Last.FM client
2023-05-20 11:24:03 +00:00
Senan Kelly
74de06430a refactor: consolidate specid <-> filesystem mapping and always use abs paths (#309) 2023-04-22 17:23:17 +00:00
sentriz
7e097c9bdf feat: allow for custom music folder path alias
closes #259
2022-11-21 20:51:26 +00:00
sentriz
131e56b3e6 refactor(subsonic): don't make getMusicFolder a method of ctrl 2022-11-02 22:21:19 +00:00
dertasiu
6e6404af73 feat(subsonic): return transcoded mime and transcoded suffix in subsonic responses
fixes #106

* Added support to TranscodedContentType and TranscodedSuffix

* Make sure that we have a profile

* Fix linting

* Fixed use of NewTCTrackByFolder instead of NewTrackByTags in handlers_by_tags.go

simplify a bit
2022-11-02 22:17:29 +00: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
2440e69689 feat(subsonic): log error responses 2022-03-23 23:41:31 +00:00
Senan Kelly
96f693f4e4 make musicFolderIds ints (#169)
* make `musicFolderId`s ints

https://github.com/sentriz/gonic/issues/50#issuecomment-963257103
006c1dafee/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
fa587fc7de refactor: update scanner, scanner tests, mockfs
closes #165
closes #163
2021-11-06 21:55:46 +00:00
Alex McGrath
37fca3a087 add some podcast nit changes and make podcasts mandatory 2021-02-03 20:45:30 +00:00
Alex McGrath
9c4286b0e2 add support for subsonic podcast api 2021-02-03 20:45:30 +00:00
Alex McGrath
4443d7d0f5 move scrobblers into their own package 2021-01-12 11:26:36 +00:00
Alex McGrath
f4ff7e70f2 server/lastfm: make a scrobbler interface and migrate lastfm to use it 2021-01-12 11:26:36 +00:00
sentriz
dae1e03940 use a "CacheCover" folder for scaled covers 2020-07-24 20:56:07 +01:00
sentriz
4f519d71ed add param parsing methods
related: #41
2020-06-06 18:13:45 +01:00
sentriz
b02ade3415 update golangci lint linter list 2020-05-02 04:22:26 +01:00
sentriz
31b2b65ea6 move from pkg/errors to go1.13 errors 2020-05-01 21:35:24 +01:00
sentriz
a541f97cd8 lastfm: rename scrobbleopts scrobbleoptions 2020-05-01 17:51:45 +01:00
sentriz
295bf5677f make the "raw" handlers a bit more consistent
also, todo: think about deleting them
2020-04-25 03:17:50 +01:00
sentriz
1ff5845a02 refactor server startup into jobs 2020-04-18 19:35:15 +01:00
sentriz
256143a025 move senan.xyz/g/ to go.senan.xyz 2020-04-02 16:46:04 +01:00
sentriz
b3a623ffe1 move cache path from base controller to subsonic controller 2020-03-26 01:42:15 +00:00
sentriz
b63428344a clean up controllers 2020-03-26 01:42:15 +00:00
sentriz
8e5d397082 add param abstraction to request context 2020-01-22 13:44:28 +00:00
sentriz
9c2f2e381b remove response writer from most admin handlers 2019-08-21 15:04:41 +01:00
sentriz
c75732868d use servefile for streaming 2019-08-21 15:04:40 +01:00
sentriz
0b929bd326 return and error from writeResp 2019-08-21 15:04:40 +01:00
sentriz
5444b328fd seperate routes, provide robust handler types, use mux 2019-07-31 15:11:46 +01:00