url #193
url
#193
Replies: 4 comments 5 replies
-
There is no need to modify anything, just use |
Beta Was this translation helpful? Give feedback.
2 replies
-
you are not working me. I have just ask for education purpose. Sorry if you
get it wrong. Does not know how to use options that why i am asking you.
Sorry!!
…On Sat, Feb 11, 2023, 5:03 PM Tomas Norkūnas ***@***.***> wrote:
Why are you telling me to write code? Am I working for you?
There is an Options object which you need to configure, and if you are
using proper IDE you would get autocomplete hints when trying to write
Options::create()->skip.. so the complete usage is
Options::create()->skipDownload(true).
Also please don't create duplicate issues. And also this is just your
question about usage and not the issue with the library itself.
—
Reply to this email directly, view it on GitHub
<#193 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUIU37YCQX3GRPFDAM2PFILWW52IDANCNFSM6AAAAAAUYUZNJ4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Does not know much about php. Do you have any tutorial about
youtube-dl-php. Please. If you have any youtube channel. Please sir
…On Sat, Feb 11, 2023, 10:54 PM Tomas Norkūnas ***@***.***> wrote:
Just try to ask in a friendlier tone and I will try to help :)
—
Reply to this email directly, view it on GitHub
<#193 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUIU37YJLBMRBGTS7FRGJBLWW7DMBANCNFSM6AAAAAAUYUZNJ4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
can you please help me out. i want to get video url. done everything. but
the code did not return me any thing,. it shows a blank page.
<?php
declare(strict_types=1);
require __DIR__ . '/vendor/autoload.php';
use YoutubeDl\Options;
use YoutubeDl\YoutubeDl;
$yt = new YoutubeDl();
$collection = $yt->download(
Options::create()->skipDownload(true)
->downloadPath('/path/to/downloads')
->url('https://www.youtube.com/watch?v=oDAw7vW7H0c')
);
foreach ($collection->getVideos() as $video) {
if ($video->getError() !== null) {
echo "Error downloading video: {$video->getError()}.";
} else {
$video->getUrl(); // audio file
}
}
?>
…On Sat, 11 Feb 2023 at 22:34, Tap Gameplay ***@***.***> wrote:
you are not working me. I have just ask for education purpose. Sorry if
you get it wrong. Does not know how to use options that why i am asking
you. Sorry!!
On Sat, Feb 11, 2023, 5:03 PM Tomas Norkūnas ***@***.***>
wrote:
> Why are you telling me to write code? Am I working for you?
>
> There is an Options object which you need to configure, and if you are
> using proper IDE you would get autocomplete hints when trying to write
> Options::create()->skip.. so the complete usage is
> Options::create()->skipDownload(true).
>
> Also please don't create duplicate issues. And also this is just your
> question about usage and not the issue with the library itself.
>
> —
> Reply to this email directly, view it on GitHub
> <#193 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AUIU37YCQX3GRPFDAM2PFILWW52IDANCNFSM6AAAAAAUYUZNJ4>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***
> com>
>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
can you modify the download code such that it only generate url so that i can stream it in my web browser
Beta Was this translation helpful? Give feedback.
All reactions