this post was submitted on 18 Aug 2023
17 points (90.5% liked)

Open Source

29197 readers
210 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 4 years ago
MODERATORS
 

Hello! I'm trying to import my youtube "watch later" playlist into my piped account on piped.yt. I extracted the videos links with this js script:

let p = [];
document.querySelectorAll("ytd-playlist-video-renderer a.yt-simple-endpoint").forEach(v => {
	if(v.href.includes("/watch?v=") && !p.includes(v.href)){
		p.push(v.href.split('&list=')[0]);
	}
})
console.log('"' + p.join('","') + '"');

I then created a dummy playlist on piped and exported it as json, in order to modify it to add my videos. this is how it looks like:

{"format":"Piped","version":1,"playlists":[{"name":"WatchLater","type":"playlist","visibility":"private","videos":["https://www.youtube.com/watch?v=somethinghere","https://www.youtube.com/watch?v=somethingheretoo"]}]}

and I replaced the videos list between [ ] with the output of the script, making sure that all quotation marks are closed. I then imported the file and.... the playlist created has 0 videos. why? am I doing something wrong?

top 4 comments
sorted by: hot top controversial new old
[–] On@kbin.social 4 points 11 months ago

Asking it on their Github issues would be more useful.

https://github.com/TeamPiped/Piped/issues

[–] PipedLinkBot@feddit.rocks -4 points 11 months ago (2 children)

Here is an alternative Piped link(s): https://piped.video/watch?v=somethinghere

https://piped.video/watch?v=somethingheretoo

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

[–] OneWomanCreamTeam@sh.itjust.works 12 points 11 months ago

Good bot, but this ain't the time.

[–] tocano@lemmy.ml 9 points 11 months ago