mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
Fix episodes listing
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import '../../../../model/source.dart';
|
||||
|
||||
Source get uhdmoviesSource => _uhdmoviesSource;
|
||||
const _uhdmoviesVersion = "0.0.1";
|
||||
const _uhdmoviesVersion = "0.0.15";
|
||||
const _uhdmoviesSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/en/uhdmovies/uhdmovies-v$_uhdmoviesVersion.dart";
|
||||
Source _uhdmoviesSource = Source(
|
||||
|
||||
@@ -52,11 +52,18 @@ class UHDMovies extends MProvider {
|
||||
}
|
||||
List<MChapter>? episodesList = [];
|
||||
if (!isSeries) {
|
||||
final moviesTitles = xpath(res,
|
||||
List<String> moviesTitles = [];
|
||||
moviesTitles = xpath(res,
|
||||
'//*[contains(@style, "center") or contains(@class, "maxbutton")]/parent::p//preceding-sibling::p[contains(@style, "center")]/text()');
|
||||
List<String> titles = [];
|
||||
if (moviesTitles.isEmpty) {
|
||||
moviesTitles = xpath(res, '//p[contains(@style, "center")]/text()');
|
||||
}
|
||||
for (var title in moviesTitles) {
|
||||
if (title.isNotEmpty && !title.contains('Download')) {
|
||||
if (title.isNotEmpty &&
|
||||
!title.contains('Download') &&
|
||||
!title.contains('Note:') &&
|
||||
!title.contains('Copyright')) {
|
||||
titles.add(title.split('[').first.trim());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user