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