mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Update playback_m3u.php
This commit is contained in:
parent
7c11cc385b
commit
8cf6e9a041
1 changed files with 0 additions and 8 deletions
|
@ -33,9 +33,6 @@ if (!$topic_id) {
|
||||||
bb_die($lang['INVALID_TOPIC_ID'], 404);
|
bb_die($lang['INVALID_TOPIC_ID'], 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Download mode
|
|
||||||
$dl_m3u = request_var('dl_m3u', 0);
|
|
||||||
|
|
||||||
// Getting torrent info from database
|
// Getting torrent info from database
|
||||||
$sql = 'SELECT attach_id, info_hash, info_hash_v2
|
$sql = 'SELECT attach_id, info_hash, info_hash_v2
|
||||||
FROM ' . BB_BT_TORRENTS . '
|
FROM ' . BB_BT_TORRENTS . '
|
||||||
|
@ -51,11 +48,6 @@ if (!$m3uFile = (new \TorrentPier\TorrServerAPI())->getM3UPath($row['attach_id']
|
||||||
bb_die($lang['ERROR_NO_ATTACHMENT']);
|
bb_die($lang['ERROR_NO_ATTACHMENT']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start downloading
|
|
||||||
if ($dl_m3u) {
|
|
||||||
dump($m3uFile);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Parse M3U file
|
// Parse M3U file
|
||||||
$m3uParser = new M3uParser\M3uParser();
|
$m3uParser = new M3uParser\M3uParser();
|
||||||
$m3uParser->addDefaultTags();
|
$m3uParser->addDefaultTags();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue