mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 02:26:10 +00:00
api/services: fix createStream
calls in pickers
oops
This commit is contained in:
parent
382873dc11
commit
541bf04575
|
@ -48,7 +48,7 @@ const extractImages = ({ getPost, filename, alwaysProxy }) => {
|
|||
let proxiedImage = createStream({
|
||||
service: "bluesky",
|
||||
type: "proxy",
|
||||
u: url,
|
||||
url,
|
||||
filename: `${filename}_${i + 1}.jpg`,
|
||||
});
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@ export default function(obj) {
|
|||
if (alwaysProxy) proxyFile = createStream({
|
||||
service: "instagram",
|
||||
type: "proxy",
|
||||
u: url,
|
||||
url,
|
||||
filename: `instagram_${id}_${i + 1}.${itemExt}`
|
||||
});
|
||||
|
||||
|
@ -189,7 +189,7 @@ export default function(obj) {
|
|||
thumb: createStream({
|
||||
service: "instagram",
|
||||
type: "proxy",
|
||||
u: e.node?.display_url,
|
||||
url: e.node?.display_url,
|
||||
filename: `instagram_${id}_${i + 1}.jpg`
|
||||
})
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ export default function(obj) {
|
|||
if (alwaysProxy) proxyFile = createStream({
|
||||
service: "instagram",
|
||||
type: "proxy",
|
||||
u: url,
|
||||
url,
|
||||
filename: `instagram_${id}_${i + 1}.${itemExt}`
|
||||
});
|
||||
|
||||
|
@ -242,7 +242,7 @@ export default function(obj) {
|
|||
thumb: createStream({
|
||||
service: "instagram",
|
||||
type: "proxy",
|
||||
u: imageUrl,
|
||||
url: imageUrl,
|
||||
filename: `instagram_${id}_${i + 1}.jpg`
|
||||
})
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ async function getStory(username, storyId, alwaysProxy) {
|
|||
const proxy = createStream({
|
||||
service: "snapchat",
|
||||
type: "proxy",
|
||||
u: snapUrl,
|
||||
url: snapUrl,
|
||||
filename: `snapchat_${username}_${snap.timestampInSec.value}.${snapExt}`,
|
||||
});
|
||||
|
||||
|
@ -81,7 +81,7 @@ async function getStory(username, storyId, alwaysProxy) {
|
|||
if (snapType === "video") thumbProxy = createStream({
|
||||
service: "snapchat",
|
||||
type: "proxy",
|
||||
u: snap.snapUrls.mediaPreviewUrl.value,
|
||||
url: snap.snapUrls.mediaPreviewUrl.value,
|
||||
});
|
||||
|
||||
if (alwaysProxy) snapUrl = proxy;
|
||||
|
|
|
@ -102,7 +102,7 @@ export default async function(obj) {
|
|||
if (obj.alwaysProxy) url = createStream({
|
||||
service: "tiktok",
|
||||
type: "proxy",
|
||||
u: url,
|
||||
url,
|
||||
filename: `${filenameBase}_photo_${i + 1}.jpg`
|
||||
})
|
||||
|
||||
|
|
|
@ -159,10 +159,10 @@ export default async function({ id, index, toGif, dispatcher, alwaysProxy }) {
|
|||
|
||||
const getFileExt = (url) => new URL(url).pathname.split(".", 2)[1];
|
||||
|
||||
const proxyMedia = (u, filename) => createStream({
|
||||
const proxyMedia = (url, filename) => createStream({
|
||||
service: "twitter",
|
||||
type: "proxy",
|
||||
u, filename,
|
||||
url, filename,
|
||||
})
|
||||
|
||||
switch (media?.length) {
|
||||
|
@ -217,7 +217,7 @@ export default async function({ id, index, toGif, dispatcher, alwaysProxy }) {
|
|||
url = createStream({
|
||||
service: "twitter",
|
||||
type: shouldRenderGif ? "gif" : "remux",
|
||||
u: url,
|
||||
url,
|
||||
filename: videoFilename,
|
||||
})
|
||||
} else if (alwaysProxy) {
|
||||
|
|
Loading…
Reference in a new issue