mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-24 12:08:55 +01: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
|
@ -38,7 +38,6 @@ this list is not final and keeps expanding over time. if support for a service y
|
||||||
| twitch clips | ✅ | ✅ | ✅ | ✅ | ✅ |
|
| twitch clips | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||||
| twitter/x | ✅ | ✅ | ✅ | ➖ | ➖ |
|
| twitter/x | ✅ | ✅ | ✅ | ➖ | ➖ |
|
||||||
| vimeo | ✅ | ✅ | ✅ | ✅ | ✅ |
|
| vimeo | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||||
| vine | ✅ | ✅ | ✅ | ➖ | ➖ |
|
|
||||||
| vk videos & clips | ✅ | ❌ | ✅ | ✅ | ✅ |
|
| vk videos & clips | ✅ | ❌ | ✅ | ✅ | ✅ |
|
||||||
| youtube | ✅ | ✅ | ✅ | ✅ | ✅ |
|
| youtube | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||||
|
|
||||||
|
|
|
@ -145,7 +145,6 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "facebook":
|
case "facebook":
|
||||||
case "vine":
|
|
||||||
case "instagram":
|
case "instagram":
|
||||||
case "tumblr":
|
case "tumblr":
|
||||||
case "pinterest":
|
case "pinterest":
|
||||||
|
|
|
@ -19,7 +19,6 @@ import tumblr from "./services/tumblr.js";
|
||||||
import vimeo from "./services/vimeo.js";
|
import vimeo from "./services/vimeo.js";
|
||||||
import soundcloud from "./services/soundcloud.js";
|
import soundcloud from "./services/soundcloud.js";
|
||||||
import instagram from "./services/instagram.js";
|
import instagram from "./services/instagram.js";
|
||||||
import vine from "./services/vine.js";
|
|
||||||
import pinterest from "./services/pinterest.js";
|
import pinterest from "./services/pinterest.js";
|
||||||
import streamable from "./services/streamable.js";
|
import streamable from "./services/streamable.js";
|
||||||
import twitch from "./services/twitch.js";
|
import twitch from "./services/twitch.js";
|
||||||
|
@ -175,12 +174,6 @@ export default async function({ host, patternMatch, params }) {
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "vine":
|
|
||||||
r = await vine({
|
|
||||||
id: patternMatch.id
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "pinterest":
|
case "pinterest":
|
||||||
r = await pinterest({
|
r = await pinterest({
|
||||||
id: patternMatch.id,
|
id: patternMatch.id,
|
||||||
|
|
|
@ -143,10 +143,6 @@ export const services = {
|
||||||
subdomains: ["mobile"],
|
subdomains: ["mobile"],
|
||||||
altDomains: ["x.com", "vxtwitter.com", "fixvx.com"],
|
altDomains: ["x.com", "vxtwitter.com", "fixvx.com"],
|
||||||
},
|
},
|
||||||
vine: {
|
|
||||||
patterns: ["v/:id"],
|
|
||||||
tld: "co",
|
|
||||||
},
|
|
||||||
vimeo: {
|
vimeo: {
|
||||||
patterns: [
|
patterns: [
|
||||||
":id",
|
":id",
|
||||||
|
|
|
@ -55,9 +55,6 @@ export const testers = {
|
||||||
pattern.id?.length <= 11
|
pattern.id?.length <= 11
|
||||||
&& (!pattern.password || pattern.password.length < 16),
|
&& (!pattern.password || pattern.password.length < 16),
|
||||||
|
|
||||||
"vine": pattern =>
|
|
||||||
pattern.id?.length <= 12,
|
|
||||||
|
|
||||||
"vk": pattern =>
|
"vk": pattern =>
|
||||||
pattern.userId?.length <= 10 && pattern.videoId?.length <= 10,
|
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