mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-26 17:46:06 +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
|
@ -38,7 +38,6 @@ this list is not final and keeps expanding over time. if support for a service y
|
|||
| twitch clips | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| twitter/x | ✅ | ✅ | ✅ | ➖ | ➖ |
|
||||
| vimeo | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| vine | ✅ | ✅ | ✅ | ➖ | ➖ |
|
||||
| vk videos & clips | ✅ | ❌ | ✅ | ✅ | ✅ |
|
||||
| youtube | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
|
||||
|
|
|
@ -145,7 +145,6 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
|
|||
break;
|
||||
|
||||
case "facebook":
|
||||
case "vine":
|
||||
case "instagram":
|
||||
case "tumblr":
|
||||
case "pinterest":
|
||||
|
|
|
@ -19,7 +19,6 @@ import tumblr from "./services/tumblr.js";
|
|||
import vimeo from "./services/vimeo.js";
|
||||
import soundcloud from "./services/soundcloud.js";
|
||||
import instagram from "./services/instagram.js";
|
||||
import vine from "./services/vine.js";
|
||||
import pinterest from "./services/pinterest.js";
|
||||
import streamable from "./services/streamable.js";
|
||||
import twitch from "./services/twitch.js";
|
||||
|
@ -175,12 +174,6 @@ export default async function({ host, patternMatch, params }) {
|
|||
})
|
||||
break;
|
||||
|
||||
case "vine":
|
||||
r = await vine({
|
||||
id: patternMatch.id
|
||||
});
|
||||
break;
|
||||
|
||||
case "pinterest":
|
||||
r = await pinterest({
|
||||
id: patternMatch.id,
|
||||
|
|
|
@ -143,10 +143,6 @@ export const services = {
|
|||
subdomains: ["mobile"],
|
||||
altDomains: ["x.com", "vxtwitter.com", "fixvx.com"],
|
||||
},
|
||||
vine: {
|
||||
patterns: ["v/:id"],
|
||||
tld: "co",
|
||||
},
|
||||
vimeo: {
|
||||
patterns: [
|
||||
":id",
|
||||
|
|
|
@ -55,9 +55,6 @@ export const testers = {
|
|||
pattern.id?.length <= 11
|
||||
&& (!pattern.password || pattern.password.length < 16),
|
||||
|
||||
"vine": pattern =>
|
||||
pattern.id?.length <= 12,
|
||||
|
||||
"vk": pattern =>
|
||||
pattern.userId?.length <= 10 && pattern.videoId?.length <= 10,
|
||||
|
||||
|
|
|
@ -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" }
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
[
|
||||
{
|
||||
"name": "regular vine link (9+10=21)",
|
||||
"url": "https://vine.co/v/huwVJIEJW50",
|
||||
"params": {},
|
||||
"expected": {
|
||||
"code": 200,
|
||||
"status": "redirect"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "regular vine link (isAudioOnly)",
|
||||
"url": "https://vine.co/v/huwVJIEJW50",
|
||||
"params": {
|
||||
"downloadMode": "audio"
|
||||
},
|
||||
"expected": {
|
||||
"code": 200,
|
||||
"status": "tunnel"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "regular vine link (isAudioMuted)",
|
||||
"url": "https://vine.co/v/huwVJIEJW50",
|
||||
"params": {
|
||||
"downloadMode": "mute"
|
||||
},
|
||||
"expected": {
|
||||
"code": 200,
|
||||
"status": "tunnel"
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue