fix: linter issues

This commit is contained in:
K1ngfish3r
2026-04-23 01:04:42 +05:00
parent 5e195b7f53
commit 2396df38bb
111 changed files with 2738 additions and 2160 deletions
+3 -2
View File
@@ -11,7 +11,7 @@ class AuthorToday implements Plugin.PluginBase {
name = 'Автор Тудей';
icon = 'src/ru/authortoday/icon.png';
site = 'https://author.today';
version = '1.2.1';
version = '1.2.2';
private userAgent =
'Mozilla/5.0 (Android 15; Mobile; rv:138.0) Gecko/138.0 Firefox/138.0';
@@ -236,7 +236,8 @@ class AuthorToday implements Plugin.PluginBase {
headers: { 'User-Agent': this.userAgent },
}).then(res => res.text());
let [workID, chapterID] = chapterPath.split('/');
const [workID, initialChapterID] = chapterPath.split('/');
let chapterID = initialChapterID;
const userRaw = html.match(/userId:(.*?),/)?.[1]?.trim();
const userId = userRaw === 'null' ? '' : userRaw;