fix wp mangastream no chapter issue (#5118)
when there is no chapter, ext throw "index 0 size 0 instead"
This commit is contained in:
parent
d6ce9abd26
commit
6ae811f8a4
@ -5,7 +5,7 @@ ext {
|
|||||||
extName = 'WP MangaStream (multiple sources)'
|
extName = 'WP MangaStream (multiple sources)'
|
||||||
pkgNameSuffix = 'all.wpmangastream'
|
pkgNameSuffix = 'all.wpmangastream'
|
||||||
extClass = '.WPMangaStreamFactory'
|
extClass = '.WPMangaStreamFactory'
|
||||||
extVersionCode = 39
|
extVersionCode = 40
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,7 +190,8 @@ abstract class WPMangaStream(
|
|||||||
|
|
||||||
// Add timestamp to latest chapter, taken from "Updated On". so source which not provide chapter timestamp will have atleast one
|
// Add timestamp to latest chapter, taken from "Updated On". so source which not provide chapter timestamp will have atleast one
|
||||||
val date = document.select(".fmed:contains(update) time ,span:contains(update) time").attr("datetime")
|
val date = document.select(".fmed:contains(update) time ,span:contains(update) time").attr("datetime")
|
||||||
if (date != "") chapters[0].date_upload = parseDate(date)
|
val checkChapter = document.select(chapterListSelector()).firstOrNull()
|
||||||
|
if (date != "" && checkChapter != null) chapters[0].date_upload = parseDate(date)
|
||||||
|
|
||||||
return chapters
|
return chapters
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user