mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
fixed libretube export importing
This commit is contained in:
parent
55fb472ba2
commit
14f43363f6
1 changed files with 3 additions and 2 deletions
|
@ -88,10 +88,11 @@ export default {
|
|||
});
|
||||
}
|
||||
// NewPipe
|
||||
else if (text.indexOf("app_version") != -1) {
|
||||
else if (text.indexOf("subscriptions") != -1) {
|
||||
const json = JSON.parse(text);
|
||||
json.subscriptions
|
||||
.filter(item => item.service_id == 0)
|
||||
// if service_id is undefined, chances are it's a freetube export
|
||||
.filter(item => item.service_id == 0 || item.service_id == undefined)
|
||||
.forEach(item => {
|
||||
const url = item.url;
|
||||
const id = url.slice(-24);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue