api: remove support for vine cuz the archive is dead

masterful gambit elon musk
This commit is contained in:
wukko 2024-11-15 18:29:21 +06:00
parent f7dc6cebad
commit 3de3e9e158
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
7 changed files with 0 additions and 64 deletions

View file

@ -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 | ✅ | ✅ | ✅ | ✅ | ✅ |

View file

@ -145,7 +145,6 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
break;
case "facebook":
case "vine":
case "instagram":
case "tumblr":
case "pinterest":

View file

@ -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,

View file

@ -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",

View file

@ -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,

View file

@ -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" }
}

View file

@ -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"
}
}
]