Add tracks from a direct link and from Discord with /play, /skip, /queue
- Download direct audio links server side (web page and /play), refusing internal and special addresses at connection time and after every redirect, with size and time limits. - /play takes an attachment, a direct link or a library track (autocomplete), and can keep the file in the library; /skip and /queue control and show the shared queue. - Share one ingest path between uploads, links and Discord attachments. - Answer 413 instead of 500 when the library is full. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
98f4d29ac7
commit
39d2b6acfb
14 changed files with 715 additions and 54 deletions
|
|
@ -108,7 +108,9 @@ function registerUploadedFile(
|
|||
0
|
||||
);
|
||||
if (librarySize + file.size > MAX_LIBRARY_SIZE) {
|
||||
throw new Error("La bibliothèque permanente a atteint sa limite de 2 Go");
|
||||
const error = new Error("La bibliothèque permanente a atteint sa limite de 2 Go");
|
||||
error.status = 413;
|
||||
throw error;
|
||||
}
|
||||
|
||||
const rawExtension = path.extname(file.originalname).toLowerCase();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue