Add support for importing subscriptions from Freetube.

This commit is contained in:
FireMasterK 2022-02-13 19:11:44 +00:00
parent 3035c3cee4
commit 55009d75c0
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -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);