1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-13 22:00:28 +05:30

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); const json = JSON.parse(text);
this.subscriptions = json.subscriptions; 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 // Google Takeout JSON
else if (text.indexOf("contentDetails") != -1) { else if (text.indexOf("contentDetails") != -1) {
const json = JSON.parse(text); const json = JSON.parse(text);