Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty array: $downloadOptions->getAllFormats() #190

Open
alil0rd opened this issue Apr 11, 2024 · 7 comments
Open

empty array: $downloadOptions->getAllFormats() #190

alil0rd opened this issue Apr 11, 2024 · 7 comments

Comments

@alil0rd
Copy link

alil0rd commented Apr 11, 2024

Hi,
First of all thanks for your great efforts to provide us this.
Recently, I have faced an issue.
I have got an empty response in all my requests!
"$downloadOptions->getAllFormats()" returns an empty array.

I attached the "$youtube -> getDownloadLinks($url)" response.

225172991youtube.txt

@amiyoghoshstar
Copy link

I am also having the same issue.

@NumairNahiyo
Copy link

yes exactly i am also having the same issue

@CodeRevolutionPlugins
Copy link

Same issue

@ghost
Copy link

ghost commented Jun 11, 2024

Same issue, how to solve it ?

@HafizAmeerHamza
Copy link

Hello everyone,
I got the same issue and then I started tracking why it stopped working.
The issue arise due to the client configurations. That's why the $downloadOptions->getAllFormats() returns an empty array.
I have been working with this and have tracked the issue. Will share and update once its all fixed.

@anaseem80
Copy link

Hello everyone, I got the same issue and then I started tracking why it stopped working. The issue arise due to the client configurations. That's why the $downloadOptions->getAllFormats() returns an empty array. I have been working with this and have tracked the issue. Will share and update once its all fixed.

Solved?

@HafizAmeerHamza
Copy link

Hello everyone, I got the same issue and then I started tracking why it stopped working. The issue arise due to the client configurations. That's why the $downloadOptions->getAllFormats() returns an empty array. I have been working with this and have tracked the issue. Will share and update once its all fixed.

Solved?

Yes. Please update the client details with these in your YoutubeDownloader.php file. It will work.

"client" : {
            "hl" : "en",
            "clientName" : "WEB",
            "clientVersion" : "2.20210721.00.00",
            "clientFormFactor" : "UNKNOWN_FORM_FACTOR",
            "clientScreen" : "WATCH",
            "mainAppWebInfo" : {
                "graftUrl" : "/watch?v=JIbfzmt2LuY"
            }
        }

I will also share an updated version of this package in my repo. Keep checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants