From 4fc445dfe9c999774d05bcb7853ef64eb9499a01 Mon Sep 17 00:00:00 2001 From: kodjomoustapha <107993382+kodjodevf@users.noreply.github.com> Date: Fri, 9 Feb 2024 15:15:40 +0100 Subject: [PATCH] Bato.to: Fix page list --- manga/src/all/batoto/batoto.dart | 7 +++++-- manga/src/all/batoto/sources.dart | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/manga/src/all/batoto/batoto.dart b/manga/src/all/batoto/batoto.dart index f0e47658..881c04d6 100644 --- a/manga/src/all/batoto/batoto.dart +++ b/manga/src/all/batoto/batoto.dart @@ -184,8 +184,11 @@ class Batoto extends MProvider { List pagesUrl = []; for (int i = 0; i < imageUrls.length; i++) { String imgUrl = imageUrls[i]; - String imgAcc = imgAccList[i]; - pagesUrl.add("$imgUrl?$imgAcc"); + String imgAcc = ""; + if (imgAccList.length >= (i + 1)) { + imgAcc = "?${imgAccList[i]}"; + } + pagesUrl.add("$imgUrl$imgAcc"); } return pagesUrl; diff --git a/manga/src/all/batoto/sources.dart b/manga/src/all/batoto/sources.dart index e4164119..cd2757e1 100644 --- a/manga/src/all/batoto/sources.dart +++ b/manga/src/all/batoto/sources.dart @@ -1,6 +1,6 @@ import '../../../../model/source.dart'; -const _batotoVersion = "0.0.65"; +const _batotoVersion = "0.0.7"; const _batotoSourceCodeUrl = "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/manga/src/all/batoto/batoto.dart";