mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Updated
This commit is contained in:
parent
b1c751ef23
commit
fbf2881307
3 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ if (!$info_hash = (string)$this->request['info_hash'] or !ctype_xdigit($info_has
|
||||||
$this->ajax_die("Invalid info_hash: $info_hash");
|
$this->ajax_die("Invalid info_hash: $info_hash");
|
||||||
}
|
}
|
||||||
|
|
||||||
$isAudio = !empty($this->request['is_audio']);
|
$isAudio = isset($this->request['is_audio']) && $this->request['is_audio'];
|
||||||
|
|
||||||
// Get ffprobe info from TorrServer
|
// Get ffprobe info from TorrServer
|
||||||
$ffpInfo = (new \TorrentPier\TorrServerAPI())->getFfpInfo($info_hash, $file_index, $attach_id);
|
$ffpInfo = (new \TorrentPier\TorrServerAPI())->getFfpInfo($info_hash, $file_index, $attach_id);
|
||||||
|
|
|
@ -90,7 +90,7 @@ foreach ($m3uData as $entry) {
|
||||||
'FILE_INDEX' => $urlParams['index'],
|
'FILE_INDEX' => $urlParams['index'],
|
||||||
'ROW_CLASS' => $rowClass,
|
'ROW_CLASS' => $rowClass,
|
||||||
'IS_VALID' => in_array($getExtension, array_merge($validFormats['audio'], $validFormats['video'])),
|
'IS_VALID' => in_array($getExtension, array_merge($validFormats['audio'], $validFormats['video'])),
|
||||||
'IS_AUDIO' => in_array($getExtension, $validFormats['audio']),
|
'IS_AUDIO' => (int)in_array($getExtension, $validFormats['audio']),
|
||||||
'STREAM_LINK' => $streamLink,
|
'STREAM_LINK' => $streamLink,
|
||||||
'M3U_DL_LINK' => DL_URL . $row['attach_id'] . '&m3u=1',
|
'M3U_DL_LINK' => DL_URL . $row['attach_id'] . '&m3u=1',
|
||||||
'TITLE' => $title,
|
'TITLE' => $title,
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
<td width="40%"><b>{m3ulist.TITLE}</b>
|
<td width="40%"><b>{m3ulist.TITLE}</b>
|
||||||
<div id="ffprobe_{m3ulist.FILE_INDEX}">
|
<div id="ffprobe_{m3ulist.FILE_INDEX}">
|
||||||
<hr/>
|
<hr/>
|
||||||
<input onclick="ajax.ffprobe_info({m3ulist.FILE_INDEX}, '{m3ulist.IS_AUDIO}');" type="button" value="{L_SHOW_MORE_INFORMATION_FILE}">
|
<input onclick="ajax.ffprobe_info({m3ulist.FILE_INDEX}, {m3ulist.IS_AUDIO});" type="button" value="{L_SHOW_MORE_INFORMATION_FILE}">
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue