Just like YT Embed Helper. But it uses piped instead of yt_dlp
My Server always got the "log in to view this content" error.
That's why I made this new Script.
?vid= defines the Video ID
&format= defines the format you want. You can choose:
video (this is the default, you don't need to specify the format for this)
audio
image
This Script automatically gets the instances from https://piped-instances.kavin.rocks/ and asks each instance until it got its data.
So it will normally ask only one instance. But if that one can't give the data, it will ask the next one.
It also creates cache files. So if you ask for the same Video multiple times in one hour, it will still only ask piped once for that video.
You need to create the Folder "yt-cache" for that to work. The folder needs to be in the same directory as the .php
(also make sure your permissions are set properly. You can use chmod 777 yt-cache/
to set them.)
- Randomize the instance list order to not always ask the same instance.