From c63bf0214990048844ca0fccd8c182bb68f7b501 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 31 Aug 2024 19:57:52 +0700 Subject: [PATCH] Updated --- playback_m3u.php | 2 +- styles/templates/default/playback_m3u.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playback_m3u.php b/playback_m3u.php index 9b8f9177e..121c5778f 100644 --- a/playback_m3u.php +++ b/playback_m3u.php @@ -154,7 +154,7 @@ $template->assign_vars([ 'HAS_ITEMS' => (bool)$filesCount, 'PAGE_TITLE' => $lang['PLAYBACK_M3U'], 'ATTACH_ID' => $row['attach_id'], - 'INFO_HASH' => $row['info_hash'] ?? $row['info_hash_v2'], + 'INFO_HASH' => bin2hex($row['info_hash'] ?? $row['info_hash_v2']), '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 e7b3d5852..180773aee 100644 --- a/styles/templates/default/playback_m3u.tpl +++ b/styles/templates/default/playback_m3u.tpl @@ -5,7 +5,7 @@ ajax.exec({ action: 'ffprobe_info', attach_id: {ATTACH_ID}, - info_hash: {INFO_HASH}, + info_hash: '{INFO_HASH}', file_index: file_index }); };