Download the mp3 audio but get the .info.json only #263
Unanswered
StarEngineer89
asked this question in
Q&A
Replies: 1 comment
-
Try to debug to see what's going on:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I tried to download the mp3 file but it's just generating the info.json files for some youtube URLs.
How can I download the mp3 files for all youtube URLs?
Here is my codes I used.
$collection = $yt->download(
Options::create()
->downloadPath(WRITEPATH . "uploads/$uploadConfig->urlAudioUploadPath")
->extractAudio(true)
->audioFormat('mp3')
->output($video_id)
->url($youtubeLink)
->cookies($uploadConfig->ffmpegPath . 'www.youtube.com_cookies.txt')
);
and here is a sample URL.
https://youtu.be/6Lhw-o-iO6g?si=Wyyd7qFMVmbvRDIF
Beta Was this translation helpful? Give feedback.
All reactions