forked from obvtiger/repiped
Update routes/trending.js
This commit is contained in:
parent
8c2e1bd15b
commit
93f7de7352
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ function trendingRouteHandler(app) {
|
|||
const videoId = item.url.replace("/watch?v=", "");
|
||||
item.thumbnail = `/api/thumbnail/${videoId}`;
|
||||
}
|
||||
if (item.uploaderUrl && item.uploaderUrl.startsWith("/channel/")) {
|
||||
const uploaderUrl = item.uploaderUrl.replace("/channel/", "");
|
||||
item.uploaderUrl = uploaderUrl;
|
||||
}
|
||||
});
|
||||
|
||||
cachedData = jsonData;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue