mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Update dl.php
This commit is contained in:
parent
9c004f0651
commit
7c11cc385b
1 changed files with 2 additions and 0 deletions
2
dl.php
2
dl.php
|
@ -25,6 +25,8 @@ $thumbnail = request_var('thumb', 0);
|
||||||
$is_m3u = false;
|
$is_m3u = false;
|
||||||
if (str_starts_with($download_id, \TorrentPier\TorrServerAPI::M3U['prefix'])) {
|
if (str_starts_with($download_id, \TorrentPier\TorrServerAPI::M3U['prefix'])) {
|
||||||
$is_m3u = true;
|
$is_m3u = true;
|
||||||
|
} else {
|
||||||
|
$download_id = (int)$download_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send file to browser
|
// Send file to browser
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue