From 6275202f2cf3d04e84097727e0423c5dd49e62cc Mon Sep 17 00:00:00 2001 From: endingisnight <159056049+endingisnight@users.noreply.github.com> Date: Tue, 27 Feb 2024 01:06:54 +0200 Subject: [PATCH] feat: support for subscription imports from FreeTube (#3426) --- src/components/ImportPage.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ImportPage.vue b/src/components/ImportPage.vue index eee3e427..91825a65 100644 --- a/src/components/ImportPage.vue +++ b/src/components/ImportPage.vue @@ -88,10 +88,11 @@ export default { }); } // NewPipe - else if (text.indexOf("app_version") != -1) { + else if (text.indexOf("subscriptions") != -1) { const json = JSON.parse(text); json.subscriptions - .filter(item => item.service_id == 0) + // if service_id is undefined, chances are it's a freetube export + .filter(item => item.service_id == 0 || item.service_id == undefined) .forEach(item => { const url = item.url; const id = url.slice(-24);