mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Fix: FreeTube Subscription Import
This commit is contained in:
parent
eba287e955
commit
de50a8fc6c
1 changed files with 9 additions and 4 deletions
|
@ -105,11 +105,16 @@ export default {
|
|||
}
|
||||
// FreeTube DB
|
||||
else if (text.indexOf("allChannels") != -1) {
|
||||
const json = JSON.parse(text);
|
||||
const lines = text.split("\n");
|
||||
for (let i = 0; i < lines.length; i++) {
|
||||
if (lines[i] !== "") {
|
||||
const json = JSON.parse(lines[i]);
|
||||
json.subscriptions.forEach(item => {
|
||||
this.subscriptions.push(item.id);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
// Google Takeout JSON
|
||||
else if (text.indexOf("contentDetails") != -1) {
|
||||
const json = JSON.parse(text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue