Skip to content

Commit 10e990e

Browse files
committed
Add proper handling for JobsRunOnRecordHost flag when queuing new jobs
through the Program Detail page. (cherry picked from commit 05caea0)
1 parent 1a998aa commit 10e990e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/tv/detail.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,16 @@
137137

138138
// Queue a job?
139139
if ($program && $program->filename && $_REQUEST['job']) {
140+
$host = "";
141+
if (setting("JobsRunOnRecordHost")){
142+
$host = $program->hostname;
143+
}
140144
$db->query('INSERT INTO jobqueue
141145
SET chanid = ?,
142146
starttime = FROM_UNIXTIME(?),
143147
inserttime = NOW(),
144148
type = ?,
145-
hostname = "",
149+
hostname = ?,
146150
args = "",
147151
status = ?,
148152
statustime = NOW(),
@@ -152,6 +156,7 @@
152156
$program->chanid,
153157
$program->recstartts,
154158
$_REQUEST['job'],
159+
$host,
155160
JOB_QUEUED,
156161
JOB_USE_CUTLIST
157162
);

0 commit comments

Comments
 (0)