mirror of
https://github.com/imputnet/cobalt.git
synced 2026-11-05 17:32:36 +00:00
api: remove support for vine cuz the archive is dead
masterful gambit elon musk
This commit is contained in:
parent
f7dc6cebad
commit
3de3e9e158
7 changed files with 0 additions and 64 deletions
|
|
@ -1,15 +0,0 @@
|
|||
export default async function(obj) {
|
||||
let post = await fetch(`https://archive.vine.co/posts/${obj.id}.json`)
|
||||
.then(r => r.json())
|
||||
.catch(() => {});
|
||||
|
||||
if (!post) return { error: "fetch.empty" };
|
||||
|
||||
if (post.videoUrl) return {
|
||||
urls: post.videoUrl.replace("http://", "https://"),
|
||||
filename: `vine_${obj.id}.mp4`,
|
||||
audioFilename: `vine_${obj.id}_audio`
|
||||
}
|
||||
|
||||
return { error: "fetch.empty" }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue