How to import youtube WatchLater playlist into piped?

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:


<span style="font-weight:bold;color:#a71d5d;">let </span><span style="color:#323232;">p </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#323232;">[];
</span><span style="color:#0086b3;">document</span><span style="color:#323232;">.querySelectorAll(</span><span style="color:#183691;">"ytd-playlist-video-renderer a.yt-simple-endpoint"</span><span style="color:#323232;">).forEach(v </span><span style="font-weight:bold;color:#a71d5d;">=> </span><span style="color:#323232;">{
</span><span style="color:#323232;">	</span><span style="font-weight:bold;color:#a71d5d;">if</span><span style="color:#323232;">(v.href.includes(</span><span style="color:#183691;">"/watch?v="</span><span style="color:#323232;">) </span><span style="font-weight:bold;color:#a71d5d;">&& !</span><span style="color:#323232;">p.includes(v.href)){
</span><span style="color:#323232;">		p.</span><span style="color:#0086b3;">push</span><span style="color:#323232;">(v.href.split(</span><span style="color:#183691;">'&list='</span><span style="color:#323232;">)[</span><span style="color:#0086b3;">0</span><span style="color:#323232;">]);
</span><span style="color:#323232;">	}
</span><span style="color:#323232;">})
</span><span style="color:#795da3;">console</span><span style="color:#323232;">.</span><span style="color:#0086b3;">log</span><span style="color:#323232;">(</span><span style="color:#183691;">'"' </span><span style="font-weight:bold;color:#a71d5d;">+ </span><span style="color:#323232;">p.join(</span><span style="color:#183691;">'","'</span><span style="color:#323232;">) </span><span style="font-weight:bold;color:#a71d5d;">+ </span><span style="color:#183691;">'"'</span><span style="color:#323232;">);
</span>

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:


<span style="color:#323232;">{</span><span style="font-weight:bold;color:#183691;">"format"</span><span style="color:#323232;">:"Piped",</span><span style="font-weight:bold;color:#183691;">"version"</span><span style="color:#323232;">:</span><span style="color:#0086b3;">1</span><span style="color:#323232;">,</span><span style="font-weight:bold;color:#183691;">"playlists"</span><span style="color:#323232;">:[{</span><span style="font-weight:bold;color:#183691;">"name"</span><span style="color:#323232;">:"WatchLater",</span><span style="font-weight:bold;color:#183691;">"type"</span><span style="color:#323232;">:"playlist",</span><span style="font-weight:bold;color:#183691;">"visibility"</span><span style="color:#323232;">:"private",</span><span style="font-weight:bold;color:#183691;">"videos"</span><span style="color:#323232;">:["https://www.youtube.com/watch?v=somethinghere","https://www.youtube.com/watch?v=somethingheretoo"]}]}
</span>

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?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • wartaberita
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • Testmaggi
  • Socialism
  • feritale
  • oklahoma
  • SuperSentai
  • KamenRider
  • All magazines