mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-10 15:28:29 +00:00
api/duitang: cleanup
This commit is contained in:
parent
0baa7a5c77
commit
212348a624
@ -217,7 +217,7 @@ export const services = {
|
|||||||
"v/:id"
|
"v/:id"
|
||||||
],
|
],
|
||||||
subdomains: ["music", "m"],
|
subdomains: ["music", "m"],
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.values(services).forEach(service => {
|
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"
|
import { createStream } from "../../stream/manage.js"
|
||||||
|
|
||||||
export default async function(post) {
|
export default async function(post) {
|
||||||
@ -21,7 +21,7 @@ export default async function(post) {
|
|||||||
} catch { return { error: 'fetch.empty' }; }
|
} catch { return { error: 'fetch.empty' }; }
|
||||||
|
|
||||||
let originalUrl = json.data.photo.path.toString();
|
let originalUrl = json.data.photo.path.toString();
|
||||||
const image = {
|
let image = {
|
||||||
// always proxy here because of headers
|
// always proxy here because of headers
|
||||||
type: "photo",
|
type: "photo",
|
||||||
url: createStream({
|
url: createStream({
|
||||||
|
Loading…
Reference in New Issue
Block a user