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 . ')' . '';