mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Update dl.php
This commit is contained in:
parent
261f8d3e62
commit
26d5feffa5
1 changed files with 5 additions and 1 deletions
6
dl.php
6
dl.php
|
@ -105,7 +105,11 @@ if ($thumbnail) {
|
||||||
// Re-define $attachment['physical_filename'] for thumbnails
|
// Re-define $attachment['physical_filename'] for thumbnails
|
||||||
$attachment['physical_filename'] = THUMB_DIR . '/t_' . $attachment['physical_filename'];
|
$attachment['physical_filename'] = THUMB_DIR . '/t_' . $attachment['physical_filename'];
|
||||||
} elseif ($m3u) {
|
} elseif ($m3u) {
|
||||||
$attachment['physical_filename'] = ''; // TODO: m3u file path
|
// Check m3u file exist
|
||||||
|
if (!$m3uFile = (new \TorrentPier\TorrServerAPI())->getM3UPath($m3u)) {
|
||||||
|
bb_die($lang['ERROR_NO_ATTACHMENT']);
|
||||||
|
}
|
||||||
|
$attachment['physical_filename'] = basename($m3uFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
DB()->sql_freeresult($result);
|
DB()->sql_freeresult($result);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue