mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-09 23:08:29 +00:00
api/duitang: cleanup
This commit is contained in:
parent
0baa7a5c77
commit
212348a624
@ -217,7 +217,7 @@ export const services = {
|
||||
"v/:id"
|
||||
],
|
||||
subdomains: ["music", "m"],
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Object.values(services).forEach(service => {
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user