This commit is contained in:
kodjomoustapha 2024-11-05 10:09:52 +01:00
parent 1b61f97fae
commit 4388fb03ff

View file

@ -63,7 +63,9 @@ List<Source> _searchJsSources(Directory dir) {
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/javascript/${sourceJson["pkgPath"] ?? sourceJson["pkgName"]}";
if (langs?.isNotEmpty ?? false) {
for (var lang in langs!) {
sourceList.add(Source.fromJson(source.toJson())..lang = lang);
sourceList.add(Source.fromJson(source.toJson())
..lang = lang
..id = 'mangayomi-js-"$lang"."${source.name}"'.hashCode);
}
} else {
sourceList.add(source);