diff --git a/playback_m3u.php b/playback_m3u.php index 38b287ec6..8e7213993 100644 --- a/playback_m3u.php +++ b/playback_m3u.php @@ -153,7 +153,10 @@ foreach ($m3uData as $entry) { $template->assign_vars([ 'HAS_ITEMS' => (bool)$filesCount, 'PAGE_TITLE' => $lang['PLAYBACK_M3U'], - 'FILES_COUNT' => sprintf($lang['BT_FLIST_FILE_PATH'], declension($filesCount, 'files')), + 'ATTACH_ID' => $row['attach_id'], + 'INFO_HASH' => $row['info_hash'] ?? $row['info_hash_v2'], + 'FILES_COUNT' => $filesCount, + 'FILES_COUNT_TITLE' => sprintf($lang['BT_FLIST_FILE_PATH'], declension($filesCount, 'files')), 'U_TOPIC' => TOPIC_URL . $topic_id, ]); diff --git a/styles/templates/default/playback_m3u.tpl b/styles/templates/default/playback_m3u.tpl index 433069476..2091c4f89 100644 --- a/styles/templates/default/playback_m3u.tpl +++ b/styles/templates/default/playback_m3u.tpl @@ -4,7 +4,7 @@ # - {FILES_COUNT} + {FILES_COUNT_TITLE} {L_STREAM}