From 55009d75c0e0f4c6221a0c65bdc81b7b86044d35 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 13 Feb 2022 19:11:44 +0000 Subject: [PATCH] Add support for importing subscriptions from Freetube. --- src/components/ImportPage.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/ImportPage.vue b/src/components/ImportPage.vue index 2cae5e66..0d86d5a0 100644 --- a/src/components/ImportPage.vue +++ b/src/components/ImportPage.vue @@ -104,6 +104,13 @@ export default { const json = JSON.parse(text); this.subscriptions = json.subscriptions; } + // FreeTube DB + else if (text.indexOf("allChannels") != -1) { + const json = JSON.parse(text); + json.subscriptions.forEach(item => { + this.subscriptions.push(item.id); + }); + } // Google Takeout JSON else if (text.indexOf("contentDetails") != -1) { const json = JSON.parse(text);