From 388ca90d48916328f1509e164709ab9b012712f5 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Wed, 26 Feb 2025 01:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B3=D1=80=D1=83=D0=B7=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=BB=D0=B5=D0=B9=D0=BB=D0=B8=D1=81=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=20=D1=81=20=D1=80=D0=B5=D0=B4=D0=B8=D1=80=D0=B5=D0=BA?= =?UTF-8?q?=D1=82=D0=B0=D0=BC=D0=B8=20+=20=D1=8E=D0=B7=D0=B5=D1=80=D0=B0?= =?UTF-8?q?=D0=B3=D0=B5=D0=BD=D1=82=20=D0=BD=D0=B0=20=D0=B2=D1=81=D1=8F?= =?UTF-8?q?=D0=BA=D0=B8=D0=B9=20=D1=81=D0=BB=D1=83=D1=87=D0=B0=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/Core/Playlist.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/Core/Playlist.php b/src/app/Core/Playlist.php index 0604c21..d254d98 100644 --- a/src/app/Core/Playlist.php +++ b/src/app/Core/Playlist.php @@ -95,6 +95,9 @@ class Playlist CURLOPT_TIMEOUT => 30, CURLOPT_HEADER => false, CURLOPT_FAILONERROR => true, + CURLOPT_FOLLOWLOCATION => true, + CURLOPT_MAXREDIRS => 5, + CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', ]); $content = curl_exec($curl);