fix(route): iwara subscriptions (#10545)

Co-authored-by: FeCCC <964575805@qq.com>
This commit is contained in:
FeCCC
2022-08-20 00:56:21 +08:00
committed by GitHub
co-authored by FeCCC
parent 31feadcc77
commit 0bc4d81e3a
+3 -2
View File
@@ -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,
},