Compare commits

...

2 Commits

2 changed files with 8 additions and 4 deletions

View File

@@ -46,10 +46,10 @@ class IniFile
$raw = $ini[$code]; $raw = $ini[$code];
$data = [ $data = [
'code' => $code, 'code' => $code,
'name' => $raw['name'], 'name' => $raw['name'] ?? "Playlist #$code",
'description' => $raw['desc'], 'description' => $raw['desc'] ?? null,
'url' => $raw['pls'], 'url' => $raw['pls'],
'source' => $raw['src'], 'source' => $raw['src'] ?? null,
'content' => null, 'content' => null,
'isOnline' => null, 'isOnline' => null,
'attributes' => [], 'attributes' => [],

View File

@@ -336,7 +336,11 @@
title="Состояние: оффлайн" title="Состояние: оффлайн"
{% endif %} {% endif %}
></ion-icon>&nbsp;<span class="chname">{{ channel.title }}</span> ></ion-icon>
{% if "adult" in channel.tags %}
<span class="badge small bg-warning text-dark" title="Канал для взрослых!">18+</span>
{% endif %}
<span class="chname">{{ channel.title }}</span>
<div class="text-secondary small"> <div class="text-secondary small">
{% if (channel.attributes['tvg-id']) %} {% if (channel.attributes['tvg-id']) %}
<div title="tvg-id"> <div title="tvg-id">