mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Add explanation to database page
This commit is contained in:
@@ -52,7 +52,12 @@ export default function dumpDatabase(req: Request, res: Response, showPage: bool
|
|||||||
|
|
||||||
if (showPage) {
|
if (showPage) {
|
||||||
res.send(`${styleHeader}
|
res.send(`${styleHeader}
|
||||||
<h1>SponsorBlock database dumps</h1>${licenseHeader}${linksHTML}<br/>
|
<h1>SponsorBlock database dumps</h1>${licenseHeader}
|
||||||
|
<h3>How this works</h3>
|
||||||
|
Send a request to <code>https://sponsor.ajay.app/database.json</code>, or visit this page to trigger the database dump to run.
|
||||||
|
Then, you can download the csv files below, or use the links returned from the JSON request.
|
||||||
|
<h3>Links</h3>
|
||||||
|
${linksHTML}<br/>
|
||||||
${updateQueued ? `Update queued.` : ``} Last updated: ${lastUpdate ? new Date(lastUpdate).toUTCString() : `Unknown`}`);
|
${updateQueued ? `Update queued.` : ``} Last updated: ${lastUpdate ? new Date(lastUpdate).toUTCString() : `Unknown`}`);
|
||||||
} else {
|
} else {
|
||||||
res.send({
|
res.send({
|
||||||
|
|||||||
Reference in New Issue
Block a user