mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 19:01:15 +00:00
refactor(Madara): replaced worksSources check with sourceTypeMap
This commit is contained in:
@@ -502,8 +502,13 @@ class Madara extends MProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String getMangaSubString() {
|
String getMangaSubString() {
|
||||||
const worksSources = {"Olaoe", "Mangax Core"};
|
const sourceTypeMap = {
|
||||||
return worksSources.contains(source.name) ? "works" : "manga";
|
"Olaoe": "works",
|
||||||
|
"Mangax Core": "works",
|
||||||
|
"Azora": "series",
|
||||||
|
};
|
||||||
|
|
||||||
|
return sourceTypeMap[source.name] ?? "manga";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user