From 2fd8c4128d0a5a3998f9184965e4ce48235988c0 Mon Sep 17 00:00:00 2001 From: Crepe Date: Sun, 25 Feb 2024 22:37:22 +0200 Subject: [PATCH] Added libretube backup importing --- src/components/ImportPage.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/ImportPage.vue b/src/components/ImportPage.vue index 91825a65..2874d006 100644 --- a/src/components/ImportPage.vue +++ b/src/components/ImportPage.vue @@ -99,6 +99,14 @@ export default { this.subscriptions.push(id); }); } + // Libretube + else if (text.indexOf("localSubscriptions") != -1) { + const json = JSON.parse(text); + json.localSubscriptions + .forEach(item => { + this.subscriptions.push(item.channelId); + }); + } // Invidious JSON else if (text.indexOf("thin_mode") != -1) { const json = JSON.parse(text);