Commit Graph

47 Commits

Author SHA1 Message Date
Gonzalo Arreche
1647eaac45 feat(subsonic): support public playlists
When multiple people share the same instance, they might want to share
their playlists between them.

This allows people to mark playlists as public, and to listen to public
playlists from other people. Listeners will also know who owns the
playlist, to help avoid confusion and make this feature a bit nicer.

Subsonic restrict updating playlists only to owners, this honors that
behavior, but adding flexibility could be achieved easily.
2022-02-24 16:14:51 +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
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
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
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
Duncan Overbruck
848d85d26a feat: add CreatedAt to albums (#159)
This change will make the GetAlbumList views with the "newest" type
work as expected.
2021-10-04 19:12:49 +01:00
sentriz
61e11471b3 Fix non-folder folder empty parent ids
fixes #134
introduced by 711ffe144f

id          updated_at                           modified_at                          left_path   right_path  right_path_u_dec  parent_id   cover       tag_artist_id  tag_title   tag_title_u_dec  tag_brainz_id  tag_year
----------  -----------------------------------  -----------------------------------  ----------  ----------  ----------------  ----------  ----------  -------------  ----------  ---------------  -------------  ----------
1           2021-04-20 22:04:31.437318349+01:00  2021-04-20 21:35:55.423563144+01:00              .
2           2021-04-20 22:04:31.437920005+01:00  2021-04-20 21:35:50.766896425+01:00              luke
3           2021-04-20 22:04:31.475871668+01:00  2021-04-20 21:35:11.526895985+01:00  luke/       (2003) Yos                    2           folder.jpe  1              YosepH                       cf497d42-736a  2003
4           2021-04-20 22:04:31.476325505+01:00  2021-04-20 21:35:55.423563144+01:00              beng
5           2021-04-20 22:04:31.511647498+01:00  2021-04-20 21:35:27.060229492+01:00  beng/       (2013) Cha                    4           folder.jpg  2              Chapter II                   bcafa993-f065  2013

->

id          updated_at                           modified_at                          left_path   right_path  right_path_u_dec  parent_id   cover       tag_artist_id  tag_title   tag_title_u_dec  tag_brainz_id  tag_year
----------  -----------------------------------  -----------------------------------  ----------  ----------  ----------------  ----------  ----------  -------------  ----------  ---------------  -------------  ----------
1           2021-04-20 22:22:55.368005558+01:00  2021-04-20 21:35:55.423563144+01:00              .                                                                                                                0
2           2021-04-20 22:22:55.331985959+01:00  2021-04-20 21:35:50.766896425+01:00              luke                          1                                                                                  0
3           2021-04-20 22:22:55.33148277+01:00   2021-04-20 21:35:11.526895985+01:00  luke/       (2003) Yos                    2           folder.jpe  1              YosepH                       cf497d42-736a  2003
4           2021-04-20 22:22:55.367693081+01:00  2021-04-20 21:35:55.423563144+01:00              beng                          1                                                                                  0
5           2021-04-20 22:22:55.36711045+01:00   2021-04-20 21:35:27.060229492+01:00  beng/       (2013) Cha                    4           folder.jpg  2              Chapter II                   bcafa993-f065  2013
2021-04-20 23:12:15 +01:00
sentriz
51dc407f2e Add PodcastEpisodeStatusError 2021-03-04 19:38:34 +00:00
sentriz
3c926aab99 use enum for PodcastEpisodeStatus and PodcastAutoDownload 2021-03-04 19:38:34 +00:00
Alex McGrath
10fca91785 Add download all button and include options to automatically download new episodes 2021-03-04 19:38:34 +00:00
Alex McGrath
f7772303b0 Fix podcasts with / in the name 2021-02-18 12:18:35 +00:00
sentriz
7a1d57a43c support subsonic bookmarks 2021-02-03 22:55:05 +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
a18929ad01 add custom listenbrainz url support and make ui "consistent"
Co-authored-by: spezifisch <spezifisch@users.noreply.github.com>
Co-authored-by: Alex McGrath <amk@amk.ie>
2021-01-12 11:26:36 +00:00
Alex McGrath
b9998f7ee6 Add support for scrobbling to listenbrainz 2021-01-12 11:26:36 +00:00
sentriz
20f68ce26f migrate TrackGenre before Track 2021-01-02 19:08:15 +00:00
sentriz
b1543fc524 album update after tag changes with no folder update 2020-12-31 02:28:16 +00:00
sentriz
8492561d2b add genre clean 2020-12-31 02:28:15 +00:00
sentriz
3e8884450f add bulk genre insert 2020-12-31 01:18:05 +00:00
sentriz
9295e60316 dont run genre migration if there are no genres 2020-12-31 01:18:04 +00:00
sentriz
50a87667ff add a migration for multi genres 2020-12-31 01:18:02 +00:00
sentriz
92c17a4655 Add inital multiple artist support 2020-12-31 01:18:00 +00:00
Duncan Overbruck
df679a6ae3 Add duration and track_count to getArtist, getAlbum and getAlbumList2 2020-07-24 14:26:50 +01:00
sentriz
f34a0b48f9 rename GetUserFromName -> GetUserByName 2020-07-16 23:00:51 +01:00
sentriz
0581335622 assume incoming play queue current is an ID 2020-06-30 20:42:50 +01:00
sentriz
950656af4f use pointers to specid.ID in spec responses
a bit shit but this way we can have a nil value of ID so that the json
emitempty tag will do the thing
2020-06-06 18:13:45 +01:00
sentriz
1ef2d43d39 move the id type into spec 2020-06-06 18:13:45 +01:00
sentriz
07e1c53d69 fix primary_ket in genre model
should write a migration next
2020-06-06 14:58:03 +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
ee9335f71e remove globals 2020-05-07 03:24:50 +01:00
sentriz
9bf80f4b18 move from test init()s to TestMain 2020-05-07 01:43:47 +01:00
sentriz
c12d252795 run each migration in its own transaction 2020-05-07 01:31:07 +01:00
sentriz
debdfd13ad scanner: ormise clean artists 2020-05-02 23:07:34 +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
d583c2fbd8 db: use Opaque for db conn url 2020-05-01 21:35:24 +01:00
sentriz
824048796e scanner: add more err checks 2020-05-01 21:12:01 +01:00
sentriz
08e775c9dd scanner: refactor cleaning 2020-05-01 02:59:28 +01:00
sentriz
5686517737 db: add indexes to album.tag_artist_id 2020-05-01 02:59:07 +01:00
sentriz
708198bcd5 log migrations as the run 2020-05-01 02:04:49 +01:00
sentriz
f52ce807af upgrade sqlite3 2020-04-25 01:55:46 +01:00