This commit is contained in:
Roman Kelesidis 2024-09-05 18:16:27 +07:00
commit 740e9651bf
2 changed files with 6 additions and 1 deletions

View file

@ -1286,6 +1286,7 @@ $lang['DOWNLOAD_M3U_FILE'] = 'Download .m3u file';
$lang['PLAYBACK_M3U'] = 'Playback .m3u file'; $lang['PLAYBACK_M3U'] = 'Playback .m3u file';
$lang['COPY_STREAM_LINK'] = 'Copy stream link to clipboard'; $lang['COPY_STREAM_LINK'] = 'Copy stream link to clipboard';
$lang['M3U_NOT_SUPPORTED'] = 'This file cannot be played in the browser...'; $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['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'; $lang['ATTACHMENT'] = 'Attachments';

View file

@ -14,7 +14,11 @@
if (data.ffprobe_data) { if (data.ffprobe_data) {
$('#ffprobe_' + data.file_index).html(data.ffprobe_data); $('#ffprobe_' + data.file_index).html(data.ffprobe_data);
} else { } else {
$('#ffprobe_' + data.file_index).append('<hr><span class="warnColor2">{L_PLEASE_TRY_AGAIN}</span>'); if ($('#ffprobe_' + data.file_index).find('span.warnColor2').length > 3) {
$('#ffprobe_' + data.file_index).append('<hr><span class="warnColor2">{L_M3U_FFPROBE_NO_DATA}</span>');
} else {
$('#ffprobe_' + data.file_index).append('<hr><span class="warnColor2">{L_PLEASE_TRY_AGAIN}</span>');
}
} }
} }
</script> </script>