youtube-dl-php
youtube-dl-php copied to clipboard
A PHP wrapper for youtube-dl or yt-dlp.
Type in `src/Entity/Format.php` ```php public function getFormatId(): ?string { return $this->get('format'); } ``` Solution: ```php public function getFormatId(): ?string { return $this->get('format_id'); } ```
I currently tried to change binary path to yt-dlp, it seems to download the video correctly, the "only" problem I found for now is `$collection = $yt->download($options);` being empty even...
To test you can for example login with wrong credentials with Facebook. ``` ... $collection = $yt->download($options); foreach ($collection->getVideos() as $video) { if ($video->getWarning() !== null) { http_response_code(415); echo "Warning...
I added functionality to download youtube videos asynchronized, using react event loop and promises. Example code: ```php $loop = \React\EventLoop\Factory::create(); $timer = $loop->addPeriodicTimer(1, function () { static $i = 0;...
My webserver reported this: /home/alceawis/public_html/PHP/0demo/2023-06-17-YT-Tools/YouTubeDownload/vendor/athlon1600/youtube-downloader/src/Utils/ITagUtils.php - (quarantined to /home/quarantine/cxsuser/alceawis/ITagUtils.php.1711306373_1) Known exploit = [Fingerprint Match (fp)] [PHP RFI Exploit [P2060]] (md5sum:7faeee058e49c7b33e357fda5cd6d12c) (sha256:839ffbbe616a3655fbe377619452cc7a22998919294fa9c549820bf611f3047c) - Alcea
I'm using these options in my scripts and have added them to my fork of your code. Just putting this here for reference, and if you'd like to add them...
Not sure where else the code needs to be updated in order to make it so when calling `getComments()` it actually returns the comments instead of an empty array. ```php...
Also this option `-U, --update` is required to be used for when submitting issues with `youtube-dl`/`yt-dlp` ``` Provide verbose output that clearly demonstrates the problem - [] Run your yt-dlp...
Please add `--trim-filenames` because some of the videos I try downloading give error `[Errno 36] File name too long: '/tmp/....webp` and `[Errno 36] File name too long: '/tmp/...description` and so...
Fixed Download Progress event on yt-dlp v2023.03.04 Before download info was: [download] 0.1% of ~820.00MiB at 599.88KiB/s ETA 23:18 (frag 0/82) Now it prints as: [download] 0.1% of ~ 820.00MiB...