mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-23 16:08:25 +03:00
More logs
This commit is contained in:
@@ -70,6 +70,7 @@ export async function postBranding(req: Request, res: Response) {
|
|||||||
"title": hashedUserID,
|
"title": hashedUserID,
|
||||||
"url": `https://www.youtube.com/watch?v=${videoID}`,
|
"url": `https://www.youtube.com/watch?v=${videoID}`,
|
||||||
"description": `**User Agent**: ${userAgent}\
|
"description": `**User Agent**: ${userAgent}\
|
||||||
|
\n**Sent User Agent**: ${req.body.userAgent}\
|
||||||
\n**Real User Agent**: ${req.headers["user-agent"]}\
|
\n**Real User Agent**: ${req.headers["user-agent"]}\
|
||||||
\n**Video Duration**: ${videoDuration}`,
|
\n**Video Duration**: ${videoDuration}`,
|
||||||
"color": 1184701,
|
"color": 1184701,
|
||||||
|
|||||||
@@ -519,6 +519,7 @@ export async function postSkipSegments(req: Request, res: Response): Promise<Res
|
|||||||
"title": userID,
|
"title": userID,
|
||||||
"url": `https://www.youtube.com/watch?v=${videoID}`,
|
"url": `https://www.youtube.com/watch?v=${videoID}`,
|
||||||
"description": `**User Agent**: ${userAgent}\
|
"description": `**User Agent**: ${userAgent}\
|
||||||
|
\n**Sent User Agent**: ${req.query.userAgent ?? req.body.userAgent}\
|
||||||
\n**Real User Agent**: ${req.headers["user-agent"]}\
|
\n**Real User Agent**: ${req.headers["user-agent"]}\
|
||||||
\n**Video Duration**: ${videoDurationParam}`,
|
\n**Video Duration**: ${videoDurationParam}`,
|
||||||
"color": 10813440,
|
"color": 10813440,
|
||||||
|
|||||||
Reference in New Issue
Block a user