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

it doesnt work from yearsterday #186

Open kolipavan011 opened 7 months ago

kolipavan011 commented 7 months ago

Hello ..

$downloadOptions->getAllFormats()

Above code returning empty array

here is what, I found

YouTube\Responses\PlayerApiResponse {#506 // vendor\athlon1600\youtube-downloader\src\YouTubeDownloader.php:145
  -response: 
Curl
\
Response {#505
    +status: 400
    +body: """
      {

        "error": {

          "code": 400,

          "message": "Precondition check failed.",

          "errors": [

            {

              "message": "Precondition check failed.",

              "domain": "global",

              "reason": "failedPrecondition"

            }

          ],

          "status": "FAILED_PRECONDITION"

        }

      }

      .......

I hope this help to solve this issue.