mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Add support for importing subscriptions from Freetube.
This commit is contained in:
parent
3035c3cee4
commit
55009d75c0
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue