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 }); };