diff --git a/classes/Downloader.php b/classes/Downloader.php index bae6a19..3d89040 100644 --- a/classes/Downloader.php +++ b/classes/Downloader.php @@ -470,17 +470,14 @@ class Downloader implements LoggerAwareInterface * * @return ResponseInterface * @throws AlltubeLibraryException - * @link https://github.com/guzzle/guzzle/issues/2640 */ public function getHttpResponse(Video $video, array $headers = []): ResponseInterface { - // IDN conversion breaks with Google hosts like https://r3---sn-25glene6.googlevideo.com/. - $client = new Client(['idn_conversion' => false]); - $urls = $video->getUrl(); + $client = new Client(); return $client->request( 'GET', - $urls[0], + $video->url, [ 'stream' => true, 'headers' => array_merge((array)$video->http_headers, $headers)