Commit Graph

33 Commits

Author SHA1 Message Date
sentriz
d9e8bd0d65 refactor(scanner): follow symlinks, move context, update mockfs
related #174
2021-12-20 16:51:26 +00:00
sentriz
1b013e73cf delete scanner ErrStatingItem 2021-11-20 18:18:32 +00:00
sentriz
e10c8bafdf refactor: remove godirwalk dep 2021-11-20 18:09:33 +00:00
sentriz
870bec7d56 add scanner.scanDir 2021-11-10 19:12:39 +00:00
sentriz
b2388e6d85 feat: log all folders while scanning 2021-11-10 00:22:25 +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
f50817a3dc fix(scanner): update changed cover files when scanning
fixes: #158
2021-10-03 21:00:37 +01:00
sentriz
93608d04b4 fix(scanner): refactor a bit and fix the issue of repeatedly adding and removing tracks 😎
fixes #26
fixes #63
2021-09-10 21:00:10 +01:00
sentriz
569f62c08c refactor(scanner): don't be fancy with the clean funcs 2021-09-09 22:04:14 +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
6e09fb0210 clean artists with join 2021-01-03 18:15:16 +00:00
sentriz
eedae3f41b clean genres by checking track_genres->genres null 2021-01-03 18:15:16 +00:00
sentriz
352c75b85d make log quoting consistent 2021-01-03 18:15:16 +00:00
sentriz
711ffe144f album update after tag changes with no folder update 2021-01-03 18:15:16 +00:00
sentriz
dfefd9e616 delete old track_genre and album_genre tags while scanning 2021-01-03 18:15:16 +00:00
sentriz
cdc6622dc7 add genre clean 2021-01-03 18:15:16 +00:00
sentriz
8dcfcbbb76 add bulk genre insert 2021-01-03 18:15:16 +00:00
sentriz
de79b043e1 Add inital multiple artist support 2021-01-03 18:15:16 +00:00
sentriz
adb46d0e1b select all columns for scanner stack 2020-11-19 18:06:57 +00:00
Günther Noack
a152492a7e Recognize AlbumArt.{png,jpg,jpeg} files. 2020-07-05 16:47:08 +02:00
sentriz
fd96bfe6a8 periodically clean sessions 2020-05-19 19:19:47 +01:00
sentriz
ee9335f71e remove globals 2020-05-07 03:24:50 +01:00
sentriz
debdfd13ad scanner: ormise clean artists 2020-05-02 23:07:34 +01:00
sentriz
e7c95383be scanner: log errors when writing 2020-05-02 14:32:03 +01:00
sentriz
15a5bba7b1 server: use godirwalk ErrorCallback 2020-05-02 04:42:09 +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
824048796e scanner: add more err checks 2020-05-01 21:12:01 +01:00
sentriz
f35a589bfd scanner: add item unchanged 2020-05-01 17:51:45 +01:00
sentriz
24212af42e scanner: add scanoptions struct 2020-05-01 17:51:45 +01:00
sentriz
08e775c9dd scanner: refactor cleaning 2020-05-01 02:59:28 +01:00
sentriz
f52ce807af upgrade sqlite3 2020-04-25 01:55:46 +01:00