Commit Graph

44 Commits

Author SHA1 Message Date
sentriz
fc50f01de3 check ServeStream track errors 2021-11-14 16:56:10 +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
212a13395d fix: return early before type switch in ServeStream
related #152
2021-08-23 21:31:49 +01:00
Serge Tkatchouk
4109b5b66c feat(encode): add mime-type headers to cache handlers
* feat(encode): add mime-type headers to cache handlers

This commit adds a simple MIME-type guessing logic to `onCacheHit` and
`onCacheMiss` handlers, which sets `Content-Type` HTTP response header based on
format specified by transcoding profile.

* Make cacheFile stat() error fatal

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

* Make linter happy

Good morning to you too, mister linter!

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

Co-authored-by: Senan Kelly <senan@senan.xyz>
2021-06-21 23:36:17 +01: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
sentriz
352c75b85d make log quoting consistent 2021-01-03 18:15:16 +00:00
fijam
74f3c5a015 Revamp the transcoding decision tree 2020-09-25 13:23:50 +01:00
sentriz
c05b92d924 make linter happy 2020-07-24 20:56:07 +01:00
sentriz
dae1e03940 use a "CacheCover" folder for scaled covers 2020-07-24 20:56:07 +01:00
sentriz
850f2f1216 split ServeGetCoverArt logic up 2020-07-24 20:56:07 +01:00
Duncan Overbruck
2e0efa7c7d use path.Join to construct image cache path 2020-07-24 20:56:07 +01:00
Duncan Overbruck
ae98a18b52 add album cover scaling and caching 2020-07-24 20:56:07 +01:00
sentriz
b8ed413ed3 parse incoming ids in handlers 2020-06-06 18:13:45 +01:00
sentriz
26457aae6c add const 2020-06-06 18:13:45 +01:00
sentriz
2ee1b4d978 abstract away some of the encode internals 2020-05-08 18:42:45 +01:00
sentriz
ee9335f71e remove globals 2020-05-07 03:24:50 +01:00
sentriz
a541f97cd8 lastfm: rename scrobbleopts scrobbleoptions 2020-05-01 17:51:45 +01:00
sentriz
f52ce807af upgrade sqlite3 2020-04-25 01:55:46 +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
4b32bc0e4d move admin playlist handlers to own file 2020-03-15 00:03:15 +00:00
sentriz
3a8e5b9205 run gofumpt / format comments / comment blocks 2020-03-12 15:17:36 +00:00
sentriz
1fcf5bcb17 add fallback device rule with "*" pseudo client 2020-03-12 12:28:07 +00:00
sentriz
eec0b0bf1f use user selected profile for transcoding 2020-03-12 01:25:24 +00:00
sentriz
8d09e0d3b4 fixup! move encode package up a level 2020-03-12 01:25:24 +00:00
Serge Tkatchouk
399f80a605 Make cache hit/miss messages mention the track 2020-03-03 19:28:15 +08:00
Serge Tkatchouk
16b9b31f6d Use detected bitrate when logging 2020-03-02 19:59:28 +08:00
Serge Tkatchouk
1b0dc01994 Change leftover "model" calls to new "db" calls 2020-03-02 19:18:01 +08:00
sentriz
0733117aed wrap some encode errors 2020-03-02 19:04:01 +08:00
sentriz
c79524e44e move transcoding stuff to "encode" package 2020-03-02 18:31:13 +08:00
Serge Tkatchouk
3582d0a4a2 Also unexport streamTrack(), since it's only used in ctrlsubsonic 2020-03-02 17:36:33 +08:00
Serge Tkatchouk
b896574346 Implement client-preferred bitrate support in StreamTrack() 2020-03-02 17:35:59 +08:00
Serge Tkatchouk
a19ba1cf8b Add support for client-preferred streaming bitrate 2020-03-02 17:35:22 +08:00
Serge Tkatchouk
056747ec62 Switch "/stream" controller to new "encode or stream cache" function 2020-03-02 17:35:22 +08:00
Serge Tkatchouk
53971be2aa Extract client app name (needed for per-client quirks) 2020-03-02 17:33:51 +08:00
Serge Tkatchouk
e79003996e Add separate "Download" controller 2020-03-02 17:33:51 +08:00
sentriz
6de50dc865 set known mimetypes while streaming 2020-02-21 01:43:27 +00:00
sentriz
a42edc3441 move models into db package 2020-02-19 20:08:37 +00:00
sentriz
8e5d397082 add param abstraction to request context 2020-01-22 13:44:28 +00:00
sentriz
c75732868d use servefile for streaming 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