Athlon1600 / youtube-downloader

:tv: PHP based alternative to youtube-dl and yt-dlp. Active and frequently updated! :star:
https://unblockvideos.com/
MIT License
805 stars 316 forks source link

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

Open alil0rd opened 6 months ago

alil0rd commented 6 months ago

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 commented 6 months ago

I am also having the same issue.

NumairNahiyo commented 5 months ago

yes exactly i am also having the same issue

CodeRevolutionPlugins commented 4 months ago

Same issue

ghost commented 4 months ago

Same issue, how to solve it ?

HafizAmeerHamza commented 4 months ago

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 commented 3 months ago

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 commented 3 months ago

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.