fix: hotfix ranobehub(#1313)

This commit is contained in:
Rider21
2024-11-11 07:26:23 +03:00
committed by GitHub
parent 778a5beaed
commit 297e3f3d27
+2 -5
View File
@@ -13,7 +13,7 @@ const statusKey: Record<number, string> = {
class RNBH implements Plugin.PluginBase {
id = 'RNBH.org';
name = 'RanobeHub';
version = '1.0.1';
version = '1.0.2';
site = 'https://ranobehub.org';
icon = 'src/ru/ranobehub/icon.png';
@@ -124,10 +124,7 @@ class RNBH implements Plugin.PluginBase {
);
const indexA = body.indexOf('<div class="title-wrapper">');
const indexB = body.indexOf(
'<div class="ui text container" style>',
indexA,
);
const indexB = body.indexOf('<div class="ui text container"', indexA);
const chapterText = body
.substring(indexA, indexB)