From 0bc4d81e3a0776e0ba10bd1d7eb13ab34711a16c Mon Sep 17 00:00:00 2001 From: FeCCC <72006654+FeCCC@users.noreply.github.com> Date: Sat, 20 Aug 2022 00:56:21 +0800 Subject: [PATCH] fix(route): iwara subscriptions (#10545) Co-authored-by: FeCCC <964575805@qq.com> --- lib/v2/iwara/subscriptions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/v2/iwara/subscriptions.js b/lib/v2/iwara/subscriptions.js index c4a9f843a4..787a78b5bb 100644 --- a/lib/v2/iwara/subscriptions.js +++ b/lib/v2/iwara/subscriptions.js @@ -5,7 +5,8 @@ const { art } = require('@/utils/render'); const path = require('path'); module.exports = async (ctx) => { - const rootUrl = `https://ecchi.iwara.tv/subscriptions`; + const rootUrl = `https://ecchi.iwara.tv`; + const subUrl = `https://ecchi.iwara.tv/subscriptions`; const cookie = config.iwara.cookie; if (cookie === undefined) { @@ -14,7 +15,7 @@ module.exports = async (ctx) => { const response = await got({ method: 'get', - url: rootUrl, + url: subUrl, headers: { Cookie: cookie, },