Spaces:
Paused
Paused
- app.js +1 -1
- lib/spotify.js +1 -1
app.js
CHANGED
|
@@ -29,7 +29,7 @@ app.use("/cdn", express.static(path.join(__dirname, "cdn")));
|
|
| 29 |
app.use("/tmp", express.static(path.join(__dirname, "tmp")));
|
| 30 |
|
| 31 |
app.get("/", (req, res) => {
|
| 32 |
-
res.send({
|
| 33 |
});
|
| 34 |
app.post("/api", apis);
|
| 35 |
app.get("/download", downloadf);
|
|
|
|
| 29 |
app.use("/tmp", express.static(path.join(__dirname, "tmp")));
|
| 30 |
|
| 31 |
app.get("/", (req, res) => {
|
| 32 |
+
res.send({ status: 401, message: "You don't have access to this!"})
|
| 33 |
});
|
| 34 |
app.post("/api", apis);
|
| 35 |
app.get("/download", downloadf);
|
lib/spotify.js
CHANGED
|
@@ -79,7 +79,7 @@ async function spotifyTrack(trackUrl) {
|
|
| 79 |
const taggedSongBuffer = Buffer.from(writer.arrayBuffer);
|
| 80 |
await fs.writeFileSync(`${dirTmp}/${FilenameM}`, taggedSongBuffer);
|
| 81 |
|
| 82 |
-
const URI = `https://
|
| 83 |
|
| 84 |
const res = {
|
| 85 |
status: 200,
|
|
|
|
| 79 |
const taggedSongBuffer = Buffer.from(writer.arrayBuffer);
|
| 80 |
await fs.writeFileSync(`${dirTmp}/${FilenameM}`, taggedSongBuffer);
|
| 81 |
|
| 82 |
+
const URI = `https://fullpwerr-hutatools.hf.space/tmp/${FilenameM}`;
|
| 83 |
|
| 84 |
const res = {
|
| 85 |
status: 200,
|