Update playback_m3u.php

This commit is contained in:
Roman Kelesidis 2024-09-16 22:09:56 +07:00
commit 8cf6e9a041

View file

@ -33,9 +33,6 @@ if (!$topic_id) {
bb_die($lang['INVALID_TOPIC_ID'], 404);
}
// Download mode
$dl_m3u = request_var('dl_m3u', 0);
// Getting torrent info from database
$sql = 'SELECT attach_id, info_hash, info_hash_v2
FROM ' . BB_BT_TORRENTS . '
@ -51,11 +48,6 @@ if (!$m3uFile = (new \TorrentPier\TorrServerAPI())->getM3UPath($row['attach_id']
bb_die($lang['ERROR_NO_ATTACHMENT']);
}
// Start downloading
if ($dl_m3u) {
dump($m3uFile);
}
// Parse M3U file
$m3uParser = new M3uParser\M3uParser();
$m3uParser->addDefaultTags();