From 1c0563a09c6c500ef57023740df38bd8906cc36a Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 31 Aug 2024 18:59:05 +0700 Subject: [PATCH] Update playback_m3u.php --- playback_m3u.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playback_m3u.php b/playback_m3u.php index 03806db32..9500bd618 100644 --- a/playback_m3u.php +++ b/playback_m3u.php @@ -111,7 +111,7 @@ foreach ($m3uData as $entry) { $audioDub = array_map(function ($stream) { global $lang; - $result = '' . sprintf($lang['AUDIO_TRACK'], ($stream->index === 0) ? 1 : $stream->index) . '
'; + $result = '' . sprintf($lang['AUDIO_TRACK'], (!isset($stream->index) || $stream->index === 0) ? 1 : $stream->index) . '
'; if (isset($stream->tags->language)) { if (isset($stream->tags->title)) { $result .= '' . mb_strtoupper($stream->tags->language, 'UTF-8') . ' (' . $stream->tags->title . ')' . '';