Commit Graph

26 Commits

Author SHA1 Message Date
Claudio Ortolina c5f46550f5 Revert "In scrobble activitiy, prioritize matchin on collected release first"
This reverts commit 0c7196639f.
2025-12-03 13:05:22 +00:00
Claudio Ortolina 0c7196639f In scrobble activitiy, prioritize matchin on collected release first
When the collection contains multiple records for the same release
group, we want the scrobble activity to first match against the one that
was actually scrobbled, as opposed to ANY other collected release.
2025-12-01 09:36:37 +00:00
Claudio Ortolina a597ff4032 Make application work with empty database 2025-11-19 10:16:21 +00:00
Claudio Ortolina 36bc9266b3 Extract queries 2025-09-26 15:32:50 +03:00
Claudio Ortolina cc84c3a429 Remove unused functions 2025-09-26 15:26:44 +03:00
Claudio Ortolina c3a0819248 Stabilize order of records on this day 2025-09-26 11:33:34 +03:00
Claudio Ortolina d9391a803e Remove 'rock' from genre count 2025-08-31 09:51:02 +03:00
Claudio Ortolina f47cbc77f5 Add "On this day" section to stats 2025-08-29 12:20:46 +03:00
Claudio Ortolina a63f2de60b Use ->> instead of json_extract in queries
Improves readability of queries.
2025-06-06 21:05:44 +01:00
Claudio Ortolina 676c2e4290 Enable quokka with :module_directives rule 2025-05-28 19:41:57 +01:00
Claudio Ortolina 93e1fad88e Make purchase order deterministic
Avoids ordering issues when records have the same purchased_at datetime
(which is what happens when they're scanned in batches).
2025-05-04 09:20:45 +01:00
Claudio Ortolina ddd81ff7dd Display 50 rows of charts 2025-04-06 19:31:12 +01:00
Claudio Ortolina 6777d716fa Link to artist page in count by artist chart 2025-04-06 17:49:22 +01:00
Claudio Ortolina 1ab3c5e4df Remove useless docs 2025-04-06 09:10:12 +01:00
Claudio Ortolina 83fa2e99a5 Amend counts to only operate on collection records 2025-04-06 08:45:47 +01:00
Claudio Ortolina bd9f88ab02 Don't pipe in one function only 2025-03-09 15:49:07 +00:00
Claudio Ortolina 570ce4b145 Can count records by genre 2025-02-22 10:34:56 +00:00
Claudio Ortolina 7df136c890 Sort aliases 2025-02-20 15:27:01 +00:00
Claudio Ortolina d194a54760 Adds API to return a random record from the collection 2025-01-01 19:28:49 +00:00
Claudio Ortolina 5973206da3 Link to collected albums in scrobble activity 2025-01-01 16:11:14 +00:00
Claudio Ortolina 6427710029 Enable sorting options in collection view 2024-12-29 15:47:37 +00:00
Claudio Ortolina f48372f7b3 Use MapSets for performance
Not noticeable with current database size, but lays a good foundation
for larger libraries.

For example, given a list of 300 artist IDs, checking if an ID is in the
list takes between 30 and 40 ms (for an ID towards the end of the list),
while the MapSet version takes consistently between 15 and 20 ms.
2024-12-10 14:21:57 +03:00
Claudio Ortolina 2e2000fe01 Introduce separate search index
Uses a fts5 virtual table, kept up to date via triggers on the records
table.
2024-11-22 19:37:13 +00:00
Claudio Ortolina 80f945555c Add status for each track in the scrobble activity 2024-11-13 11:55:58 +00:00
Claudio Ortolina bd8f4cc979 Define essential record fields 2024-11-10 16:27:15 +00:00
Claudio Ortolina bd0336c4a2 Start extracting a Collection context 2024-11-10 13:38:50 +00:00