0
0
mirror of https://github.com/anthonyaxenov/iptv.git synced 2024-11-21 21:14:46 +00:00

"Ссылка для ТВ" с протоколом

This commit is contained in:
Anthony Axenov 2022-10-22 22:57:28 +08:00
parent cfda93e022
commit 6e0e9fa04a
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -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'];
}