Added libretube backup importing

This commit is contained in:
Crepe 2024-02-25 22:37:22 +02:00
parent 14f43363f6
commit 2fd8c4128d

View file

@ -99,6 +99,14 @@ export default {
this.subscriptions.push(id); 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 // Invidious JSON
else if (text.indexOf("thin_mode") != -1) { else if (text.indexOf("thin_mode") != -1) {
const json = JSON.parse(text); const json = JSON.parse(text);