From 6e0e9fa04afbfdac91a13e2fb21823971543409a Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sat, 22 Oct 2022 22:57:28 +0800 Subject: [PATCH] =?UTF-8?q?"=D0=A1=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=A2=D0=92"=20=D1=81=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=BA=D0=BE=D0=BB=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/Core/Playlist.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/Core/Playlist.php b/src/app/Core/Playlist.php index a6464e4..0f2948a 100644 --- a/src/app/Core/Playlist.php +++ b/src/app/Core/Playlist.php @@ -24,10 +24,10 @@ class Playlist extends BasicPlaylist empty($params['pls']) && throw new \Exception( "Плейлист с ID=$id обязан иметь параметр pls или redirect" ); - $this->url = str_replace(['http://', 'https://'], '', base_url($id)); + $this->url = base_url($id); $this->name = empty($params['name']) ? "Плейлист #$id" : $params['name']; $this->desc = empty($params['desc']) ? null : $params['desc']; - $this->pls = empty($params['pls']) ? null : $params['pls']; + $this->pls = $params['pls']; $this->src = empty($params['src']) ? null : $params['src']; }