mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-16 11:50:30 +00:00
fixes by @yutthaphon
- Remove duplicate description detection. - Remove unused code. - FIxed genres detection. - Add FunToons to sources.dart
This commit is contained in:
@@ -152,8 +152,7 @@ class MangaReader extends MProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final description = parseHtml(res)
|
final description = parseHtml(res)
|
||||||
.selectFirst(
|
.selectFirst(".desc, .entry-content[itemprop=description]")
|
||||||
".desc, .entry-content[itemprop=description], .tsinfo > .wd-full > .entry-content[itemprop=description]")
|
|
||||||
?.text;
|
?.text;
|
||||||
|
|
||||||
if (description != null) {
|
if (description != null) {
|
||||||
@@ -162,7 +161,7 @@ class MangaReader extends MProvider {
|
|||||||
|
|
||||||
List<String> status = xpath(
|
List<String> status = xpath(
|
||||||
res,
|
res,
|
||||||
"//table[contains(@class, 'infotable')]//tr[contains(text(), 'Status')]/td[last()]/text() | //div[contains(@class, 'tsinfo')]//div[contains(@class, 'imptdt') and contains(text(), 'Status')]//i/text() | //div[contains(@class, 'fmed')]//b[contains(text(), 'Status')]/following-sibling::span[1]/text() | //span[contains(text(), 'Status')]/text() | | //div[contains(@class, 'tsinfo')]//div[contains(@class, 'imptdt')]//span[contains(text(), 'สถานะ')]/following-sibling::i/text()",
|
"//table[contains(@class, 'infotable')]//tr[contains(text(), 'Status')]/td[last()]/text() | //div[contains(@class, 'tsinfo')]//div[contains(@class, 'imptdt') and contains(text(), 'Status')]//i/text() | //div[contains(@class, 'fmed')]//b[contains(text(), 'Status')]/following-sibling::span[1]/text() | //span[contains(text(), 'Status')]/text() | //div[contains(@class, 'tsinfo')]//div[contains(@class, 'imptdt')]//span[contains(text(), 'สถานะ')]/following-sibling::i/text()",
|
||||||
'');
|
'');
|
||||||
if (status.isEmpty) {
|
if (status.isEmpty) {
|
||||||
status = xpath(
|
status = xpath(
|
||||||
@@ -176,7 +175,7 @@ class MangaReader extends MProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
manga.genre = xpath(res,
|
manga.genre = xpath(res,
|
||||||
'//*[@class="gnr" or @class="mgen" or @class="seriestugenre" ]/a/text()');
|
'//*[@class="gnr" or @class="mgen" or @class="seriestugenre" ]/a/text() | //*[@class="mgen"]/li/a/text()');
|
||||||
var chapUrls = xpath(res,
|
var chapUrls = xpath(res,
|
||||||
'//*[@class="bxcl" or @class="cl" or @class="chbox" or @class="eph-num" or @id="chapterlist"]/div/a[not(contains(@href,"{{number}}"))]/@href');
|
'//*[@class="bxcl" or @class="cl" or @class="chbox" or @class="eph-num" or @id="chapterlist"]/div/a[not(contains(@href,"{{number}}"))]/@href');
|
||||||
var chaptersNames = xpath(res,
|
var chaptersNames = xpath(res,
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ import 'src/shijiescans/shijiescans.dart';
|
|||||||
import 'src/summertoon/summertoon.dart';
|
import 'src/summertoon/summertoon.dart';
|
||||||
import 'src/zenithscans/zenithscans.dart';
|
import 'src/zenithscans/zenithscans.dart';
|
||||||
|
|
||||||
const mangareaderVersion = "0.1.3";
|
const mangareaderVersion = "0.1.35";
|
||||||
const mangareaderSourceCodeUrl =
|
const mangareaderSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangareader/mangareader.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangareader/mangareader.dart";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user