Commit Graph

107 Commits

Author SHA1 Message Date
sentriz
7e097c9bdf feat: allow for custom music folder path alias
closes #259
2022-11-21 20:51:26 +00:00
sentriz
428fddad1b feat(jukebox): allow users to pass custom arguments to mpv
fixes #125
fixes #164
2022-11-16 20:11:35 +00:00
sentriz
e1488b0d18 feat(jukebox): use mpv over ipc as a player backend 2022-11-16 19:40:40 +00:00
Brian Doherty
f6c95503c7 feat(scanner): added option to scan at startup
closes #251
2022-11-07 23:41:56 +00:00
brian-doherty
85cb0feb5a feat(podcasts): add an option to purge old episodes
* Record podcast episode plays in ModifiedAt field.

* Added podcast purger.
2022-11-07 23:30:34 +00:00
sentriz
1f8de66fc0 2022-11-03 15:27:59 +00:00
brian-doherty
ea28ff1df3 feat(scanner): add option to use fsnotify based scan watcher (#232)
* First cut at fsnotify support. Tested on Linux.

* Fixed bug in logging.

* Fixed lint issues.

* Added new scan watcher option to README.md

* Inverted conditional and dedented following code as per PR discussion.

* Changed command line switch and error return on ExecuteWatch() as per GH comments.

* Scan watcher: Removed scan at first start. Modified watcher to set a 10 second timer and then process in bulk.

Co-authored-by: Brian Doherty <brian@hplaptop.dohertyfamily.me>
2022-10-08 15:47:35 +01:00
sentriz
8b803ecf20 refactor: move shared packages up a level 2022-04-13 01:10:46 +01:00
brian-doherty
59c404749f feat(server): support TLS
* Added https support. Will revert to http if either cert or key are empty strings.

* Update server/server.go

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

* Fixed lint issues.

Co-authored-by: Senan Kelly <senan@senan.xyz>
2022-03-14 23:38:09 +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
3cf3bdafd8 fix: show "gonic" not version in --help 2021-05-11 22:48:46 +01:00
sentriz
f3bc3ae789 feat: create cache directory on startup
the flag is still required - but the path need not exist

the folder will eventually be created by one of

		if err := os.MkdirAll(cacheDirAudio, os.ModePerm); err != nil {
		if err := os.MkdirAll(cacheDirCovers, os.ModePerm); err != nil {

fixes #127
2021-05-11 21:38:11 +01:00
sentriz
4637cf70c1 fix: trim newlines when rendering flag values
so the default genre split doesn't break the table
2021-05-11 21:34:11 +01:00
sentriz
e6b76915da fix: don't clutter db close in main 2021-05-08 18:37:55 +01:00
sentriz
0c871d888b refactor(admin): use go1.16 embed for templates and assets 2021-05-08 18:37:55 +01:00
sentriz
6f15589c08 feat!: bump to go1.16 and embed version 2021-05-08 18:37:55 +01:00
sentriz
b17ce76a72 Set getUser.view jukebox/podcast role
closes #130
2021-04-18 12:34:54 +01:00
Duncan Overbruck
2a11017d54 add flag (-http-log) to disable http request logging 2021-02-27 18:26:37 +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
sentriz
de79b043e1 Add inital multiple artist support 2021-01-03 18:15:16 +00:00
sentriz
bfcdc2c2bb prefix cmd/gonic conf vars 2020-11-12 17:19:04 +00: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
06ffa7d0d3 bump api to 1.15.0 2020-06-06 20:52:23 +01:00
sentriz
fd96bfe6a8 periodically clean sessions 2020-05-19 19:19:47 +01:00
sentriz
c65606ba1f add some go-critic suggestions 2020-05-07 04:31:47 +01:00
sentriz
3f9f050a7d gonicembed: fix lint errors and refactor 2020-05-02 04:18:46 +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
f52ce807af upgrade sqlite3 2020-04-25 01:55:46 +01:00
sentriz
b95f98ffcf add "-full-scan" scan option to gonic scan
closes #20
2020-04-24 01:57:17 +01:00
sentriz
e0f194ec6c add jukebox-enabled flag 2020-04-18 22:04:53 +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
22992c9941 fixup! run gofumpt / format comments / comment blocks 2020-03-20 02:48:51 +00:00
sentriz
3a8e5b9205 run gofumpt / format comments / comment blocks 2020-03-12 15:17:36 +00:00
sentriz
e0b790b6ec make cache path on start 2020-03-12 01:25:23 +00:00
Serge Tkatchouk
6488a354b6 Add cachePath variable and CLI option 2020-03-02 17:32:05 +08:00
sentriz
e9ca7fba64 refactor server creation 2020-02-21 01:19:21 +00:00
sentriz
2e85c95018 support proxy prefix 2020-01-27 17:02:53 +00:00
sentriz
fa12cb4150 rename server options struct 2020-01-22 13:44:54 +00:00
sentriz
2abd3cf70b add selfnames to version file 2020-01-21 13:40:39 +00:00
sentriz
8c1ba0d147 add -version flag 2019-11-27 15:56:54 +00:00
sentriz
fd098f60d6 show version in cli and web 2019-11-27 15:42:03 +00:00
sentriz
dd93aa5e74 add playlist support 2019-11-27 01:46:13 +00:00
sentriz
3b240fccb0 change default listen port to match docs 2019-11-24 03:28:30 +00:00
sentriz
a92074ecb4 add scan interval 2019-11-24 01:43:52 +00:00
sentriz
69fcbd592a tidy up cmd main 2019-11-21 19:50:38 +00:00