diff --git a/CHANGELOG.md b/CHANGELOG.md index 82a08bc9a..82a0d075f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ - Fixed template caching issue [\#1622](https://github.com/torrentpier/torrentpier/pull/1622) ([belomaxorka](https://github.com/belomaxorka)) - Fixed `md5()` deprecated in PHP 8.4 [\#1561](https://github.com/torrentpier/torrentpier/pull/1561) ([belomaxorka](https://github.com/belomaxorka)) - Increased `USEREMAIL_MAX_LENGTH` [\#1566](https://github.com/torrentpier/torrentpier/pull/1566) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1570](https://github.com/torrentpier/torrentpier/pull/1570), [\#1571](https://github.com/torrentpier/torrentpier/pull/1571), [\#1575](https://github.com/torrentpier/torrentpier/pull/1575), [\#1589](https://github.com/torrentpier/torrentpier/pull/1589), [\#1592](https://github.com/torrentpier/torrentpier/pull/1592), [\#1605](https://github.com/torrentpier/torrentpier/pull/1605), [\#1611](https://github.com/torrentpier/torrentpier/pull/1611), [\#1612](https://github.com/torrentpier/torrentpier/pull/1612), [\#1615](https://github.com/torrentpier/torrentpier/pull/1615) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#1570](https://github.com/torrentpier/torrentpier/pull/1570), [\#1571](https://github.com/torrentpier/torrentpier/pull/1571), [\#1575](https://github.com/torrentpier/torrentpier/pull/1575), [\#1589](https://github.com/torrentpier/torrentpier/pull/1589), [\#1592](https://github.com/torrentpier/torrentpier/pull/1592), [\#1605](https://github.com/torrentpier/torrentpier/pull/1605), [\#1611](https://github.com/torrentpier/torrentpier/pull/1611), [\#1612](https://github.com/torrentpier/torrentpier/pull/1612), [\#1615](https://github.com/torrentpier/torrentpier/pull/1615), [\#1627](https://github.com/torrentpier/torrentpier/pull/1627) ([belomaxorka](https://github.com/belomaxorka)) - Updated deps [\#1563](https://github.com/torrentpier/torrentpier/pull/1563), [\#1564](https://github.com/torrentpier/torrentpier/pull/1564), [\#1608](https://github.com/torrentpier/torrentpier/pull/1608), [\#1609](https://github.com/torrentpier/torrentpier/pull/1609), [\#1610](https://github.com/torrentpier/torrentpier/pull/1610) ([belomaxorka](https://github.com/belomaxorka)) - New Crowdin updates [\#1569](https://github.com/torrentpier/torrentpier/pull/1569), [\#1572](https://github.com/torrentpier/torrentpier/pull/1572), [\#1573](https://github.com/torrentpier/torrentpier/pull/1573), [\#1574](https://github.com/torrentpier/torrentpier/pull/1574), [\#1588](https://github.com/torrentpier/torrentpier/pull/1588), [\#1590](https://github.com/torrentpier/torrentpier/pull/1590), [\#1600](https://github.com/torrentpier/torrentpier/pull/1600), [\#1601](https://github.com/torrentpier/torrentpier/pull/1601), [\#1606](https://github.com/torrentpier/torrentpier/pull/1606), [\#1607](https://github.com/torrentpier/torrentpier/pull/1607), [\#1625](https://github.com/torrentpier/torrentpier/pull/1625), [\#1626](https://github.com/torrentpier/torrentpier/pull/1626) ([Exileum](https://github.com/Exileum)) diff --git a/library/language/source/main.php b/library/language/source/main.php index ab54fedc4..53cce8538 100644 --- a/library/language/source/main.php +++ b/library/language/source/main.php @@ -1272,6 +1272,7 @@ $lang['DOWNLOAD_M3U_FILE'] = 'Download .m3u file'; $lang['PLAYBACK_M3U'] = 'Playback .m3u file'; $lang['STREAM'] = 'Stream'; $lang['COPY_STREAM_LINK'] = 'Copy stream link to clipboard'; +$lang['M3U_NOT_SUPPORTED'] = 'This file cannot be played in the browser...'; $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/playback_m3u.php b/playback_m3u.php index c738543bd..ce52e7cf3 100644 --- a/playback_m3u.php +++ b/playback_m3u.php @@ -44,9 +44,6 @@ $m3uData = $m3uParser->parseFile($m3uFile); $filesCount = 0; foreach ($m3uData as $entry) { - $filesCount++; - $rowClass = ($filesCount % 2) ? 'row1' : 'row2'; - // Validate URL $streamLink = $entry->getPath(); if (!filter_var($streamLink, FILTER_VALIDATE_URL)) { @@ -69,6 +66,8 @@ foreach ($m3uData as $entry) { // Validate file extension $getExtension = pathinfo($title, PATHINFO_EXTENSION); + $filesCount++; + $rowClass = ($filesCount % 2) ? 'row1' : 'row2'; $template->assign_block_vars('m3ulist', [ 'ROW_NUMBER' => $filesCount, 'ROW_CLASS' => $rowClass, diff --git a/styles/templates/default/playback_m3u.tpl b/styles/templates/default/playback_m3u.tpl index 7870a9304..f6dc29b00 100644 --- a/styles/templates/default/playback_m3u.tpl +++ b/styles/templates/default/playback_m3u.tpl @@ -16,11 +16,12 @@