api/duitang: cleanup

This commit is contained in:
hyperdefined 2025-06-27 20:23:12 -04:00
parent 0baa7a5c77
commit 212348a624
No known key found for this signature in database
GPG Key ID: 38C93C4835071D4A
2 changed files with 3 additions and 3 deletions

View File

@ -217,7 +217,7 @@ export const services = {
"v/:id"
],
subdomains: ["music", "m"],
},
}
}
Object.values(services).forEach(service => {

View File

@ -1,4 +1,4 @@
import { genericUserAgent, env } from "../../config.js";
import { genericUserAgent } from "../../config.js";
import { createStream } from "../../stream/manage.js"
export default async function(post) {
@ -21,7 +21,7 @@ export default async function(post) {
} catch { return { error: 'fetch.empty' }; }
let originalUrl = json.data.photo.path.toString();
const image = {
let image = {
// always proxy here because of headers
type: "photo",
url: createStream({