mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 02:08:55 +08:00
fix(route/tver): Fix route configuration and optimize image sizes (#19390)
* fix: corrected parameter name in route configuration * update: improved thumbnail image size
This commit is contained in:
@@ -9,7 +9,7 @@ export const route: Route = {
|
||||
categories: ['traditional-media'],
|
||||
example: '/tver/series/srx2o7o3c8',
|
||||
parameters: {
|
||||
category: 'Series ID (as it appears in URLs). For example, in https://tver.jp/series/srx2o7o3c8, the ID is "srx2o7o3c8".',
|
||||
id: 'Series ID (as it appears in URLs). For example, in https://tver.jp/series/srx2o7o3c8, the ID is "srx2o7o3c8".',
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
@@ -81,7 +81,7 @@ async function handler(ctx: Context): Promise<Data> {
|
||||
return {
|
||||
title: i.content.title,
|
||||
link: `https://tver.jp/episodes/${i.content.id}`,
|
||||
image: `https://statics.tver.jp/images/content/thumbnail/episode/large/${i.content.id}.jpg`,
|
||||
image: `https://statics.tver.jp/images/content/thumbnail/episode/xlarge/${i.content.id}.jpg`,
|
||||
pubDate: parsedPubDate,
|
||||
};
|
||||
});
|
||||
@@ -91,7 +91,7 @@ async function handler(ctx: Context): Promise<Data> {
|
||||
description,
|
||||
author: broadcastProvider.name,
|
||||
link: `https://tver.jp/series/${id}`,
|
||||
image: `https://statics.tver.jp/images/content/thumbnail/series/large/${id}.jpg`,
|
||||
image: `https://statics.tver.jp/images/content/thumbnail/series/xlarge/${id}.jpg`,
|
||||
language: 'ja',
|
||||
item: items,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user