mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
fix: Unread badge wont show up for some sources
Always happened on Komga apparently, but not as frequent on other sources Fixes GH-95
This commit is contained in:
parent
65260e8bd7
commit
6c8bd82d41
3 changed files with 16 additions and 1 deletions
|
@ -41,6 +41,7 @@
|
|||
- Fixed splash screen state only getting updates if library is empty (Should slightly reduce splash screen duration)
|
||||
- Fixed kitsu tracker issue due to domain change
|
||||
- Fixed entry custom cover won't load if entry doesn't have cover from source
|
||||
- Fixed unread badge doesn't work properly for some sources (notably Komga)
|
||||
|
||||
## Translation
|
||||
- Update Japanese translation (akir45)
|
||||
|
|
14
data/src/commonMain/sqldelight/tachiyomi/migrations/25.sqm
Normal file
14
data/src/commonMain/sqldelight/tachiyomi/migrations/25.sqm
Normal file
|
@ -0,0 +1,14 @@
|
|||
DROP VIEW IF EXISTS scanlators_view;
|
||||
CREATE VIEW scanlators_view AS
|
||||
SELECT S.* FROM (
|
||||
WITH RECURSIVE split(seq, _id, name, str) AS (
|
||||
SELECT 0, mangas._id, NULL, mangas.filtered_scanlators||' [.] ' FROM mangas WHERE mangas._id
|
||||
UNION ALL SELECT
|
||||
seq+1,
|
||||
_id,
|
||||
substr(str, 0, instr(str, ' [.] ')),
|
||||
substr(str, instr(str, ' [.] ')+5)
|
||||
FROM split WHERE str != ''
|
||||
)
|
||||
SELECT _id AS manga_id, name FROM split WHERE split.seq != 0 ORDER BY split.seq ASC
|
||||
) AS S;
|
|
@ -2,7 +2,7 @@
|
|||
CREATE VIEW scanlators_view AS
|
||||
SELECT S.* FROM (
|
||||
WITH RECURSIVE split(seq, _id, name, str) AS (
|
||||
SELECT 0, mangas._id, NULL, ifnull(mangas.filtered_scanlators, '')||' [.] ' FROM mangas WHERE mangas._id
|
||||
SELECT 0, mangas._id, NULL, mangas.filtered_scanlators||' [.] ' FROM mangas WHERE mangas._id
|
||||
UNION ALL SELECT
|
||||
seq+1,
|
||||
_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue