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:
parent
3035c3cee4
commit
55009d75c0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user