Only use site specific handlers if data is empty

This commit is contained in:
Jobobby04 2021-09-11 11:43:16 -04:00
parent 6f93fdd089
commit 972716d884

View File

@ -34,8 +34,7 @@ class PageHandler(
return withIOContext {
val chapterResponse = service.viewChapter(MdUtil.getChapterId(chapter.url))
if (chapterResponse.data.attributes.externalUrl != null) {
this@PageHandler.xLogD(chapterResponse.data.attributes.externalUrl)
if (chapterResponse.data.attributes.externalUrl != null && chapterResponse.data.attributes.data.isEmpty()) {
when {
chapter.scanlator.equals("mangaplus", true) -> mangaPlusHandler.fetchPageList(
chapterResponse.data.attributes.externalUrl