best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
api: remove support for vine cuz the archive is dead
wukko3de3e9e158fe
diff --git a/api/README.md b/api/README.mdindex 38104626..d740fb21 100644--- a/api/README.md+++ b/api/README.md@@ -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 | ✅ | ✅ | ✅ | ✅ | ✅ |diff --git a/api/src/processing/match-action.js b/api/src/processing/match-action.jsindex 83bba08d..5820214e 100644--- a/api/src/processing/match-action.js+++ b/api/src/processing/match-action.js@@ -145,7 +145,6 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disabbreak;case "facebook":- case "vine":case "instagram":case "tumblr":case "pinterest":diff --git a/api/src/processing/match.js b/api/src/processing/match.jsindex 96036e5e..fe587f09 100644--- a/api/src/processing/match.js+++ b/api/src/processing/match.js@@ -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,diff --git a/api/src/processing/service-config.js b/api/src/processing/service-config.jsindex 9566fdf8..7e9dfaa4 100644--- a/api/src/processing/service-config.js+++ b/api/src/processing/service-config.js@@ -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",diff --git a/api/src/processing/service-patterns.js b/api/src/processing/service-patterns.jsindex 9a0acd75..0c3d63d4 100644--- a/api/src/processing/service-patterns.js+++ b/api/src/processing/service-patterns.js@@ -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,diff --git a/api/src/processing/services/vine.js b/api/src/processing/services/vine.jsdeleted file mode 100644index e0826720..00000000--- a/api/src/processing/services/vine.js+++ /dev/null@@ -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" }-}diff --git a/api/src/util/tests/vine.json b/api/src/util/tests/vine.jsondeleted file mode 100644index f1bc1f77..00000000--- a/api/src/util/tests/vine.json+++ /dev/null@@ -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"- }- }-]\ No newline at end of file