diff --git a/library/language/source/main.php b/library/language/source/main.php index e2f2ab599..af4938fc6 100644 --- a/library/language/source/main.php +++ b/library/language/source/main.php @@ -1286,6 +1286,7 @@ $lang['DOWNLOAD_M3U_FILE'] = 'Download .m3u file'; $lang['PLAYBACK_M3U'] = 'Playback .m3u file'; $lang['COPY_STREAM_LINK'] = 'Copy stream link to clipboard'; $lang['M3U_NOT_SUPPORTED'] = 'This file cannot be played in the browser...'; +$lang['M3U_FFPROBE_NO_DATA'] = 'It seems ffprobe will not be able to return data about this codec...'; $lang['M3U_NOTICE'] = 'Some browsers do not support playback of certain video formats. In such a case, you can download the .m3u file and play it using a third-party player'; $lang['ATTACHMENT'] = 'Attachments'; diff --git a/styles/templates/default/playback_m3u.tpl b/styles/templates/default/playback_m3u.tpl index d3e7e7313..35153733f 100644 --- a/styles/templates/default/playback_m3u.tpl +++ b/styles/templates/default/playback_m3u.tpl @@ -14,7 +14,11 @@ if (data.ffprobe_data) { $('#ffprobe_' + data.file_index).html(data.ffprobe_data); } else { - $('#ffprobe_' + data.file_index).append('
{L_PLEASE_TRY_AGAIN}'); + if ($('#ffprobe_' + data.file_index).find('span.warnColor2').length > 3) { + $('#ffprobe_' + data.file_index).append('
{L_M3U_FFPROBE_NO_DATA}'); + } else { + $('#ffprobe_' + data.file_index).append('
{L_PLEASE_TRY_AGAIN}'); + } } }