fix(route): eztv using new domain (#7467)

This commit is contained in:
Trim21 2021-05-09 06:03:56 +08:00 committed by GitHub
parent ae4bdfa430
commit e4ad73ece5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -5,9 +5,9 @@ module.exports = async (ctx) => {
const response = await got({
method: 'get',
url: `https://eztv.io/api/get-torrents?imdb_id=${imdb_id}`,
url: `https://eztv.it/api/get-torrents?imdb_id=${imdb_id}`,
headers: {
Referer: 'https://eztv.io',
Referer: 'https://eztv.it',
},
});
@ -15,7 +15,7 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: `EZTV's Torrents of IMBD ID: ${imdb_id}`,
link: 'https://eztv.io',
link: 'https://eztv.it',
description: `EZTV's Torrents of IMBD ID: ${imdb_id}`,
item: torrents.map((item) => ({
title: item.title,