diff --git a/src/app.ts b/src/app.ts index 49d1224..057aaa2 100644 --- a/src/app.ts +++ b/src/app.ts @@ -211,7 +211,7 @@ function setupRoutes(router: Router) { router.get("/database", (req, res) => dumpDatabase(req, res, true)); router.get("/database.json", (req, res) => dumpDatabase(req, res, false)); router.get("/database/*", downloadFile); - router.use("/download", express.static(appExportPath)); + router.use("/download", (req, res) => res.status(404).send("CSV downloads disabled. Please use sb-mirror rsync")); } else { router.get("/database.db", function (req: Request, res: Response) { res.sendFile("./databases/sponsorTimes.db", { root: "./" }); diff --git a/src/routes/dumpDatabase.ts b/src/routes/dumpDatabase.ts index c3dc2ba..10e21d6 100644 --- a/src/routes/dumpDatabase.ts +++ b/src/routes/dumpDatabase.ts @@ -124,7 +124,7 @@ export default async function dumpDatabase(req: Request, res: Response, showPage if (showPage) { res.send(`${styleHeader}

SponsorBlock database dumps

${licenseHeader} -

How this works

+

How this works

Send a request to https://sponsor.ajay.app/database.json, or visit this page to get a list of urls and the update status database dump to run. Then, you can download the csv files below, or use the links returned from the JSON request. @@ -135,6 +135,11 @@ export default async function dumpDatabase(req: Request, res: Response, showPage If you want a live dump, please do not continually fetch this url. Please instead use the sb-mirror project. This can automatically fetch new data and will not require a redownload each time, saving bandwidth. +
+ +

Please use sb-mirror

+ + For bandwidth reasons, CSV downloads have been disabled. Please use the sb-mirror project.

Links