Skip to content

Commit 05caea0

Browse files
committed
Add proper handling for JobsRunOnRecordHost flag when queuing new jobs
through the Program Detail page.
1 parent cc3c3ae commit 05caea0

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
@@ -133,12 +133,16 @@
133133

134134
// Queue a job?
135135
if ($program && $program->filename && $_REQUEST['job']) {
136+
$host = "";
137+
if (setting("JobsRunOnRecordHost")){
138+
$host = $program->hostname;
139+
}
136140
$db->query('INSERT INTO jobqueue
137141
SET chanid = ?,
138142
starttime = FROM_UNIXTIME(?),
139143
inserttime = NOW(),
140144
type = ?,
141-
hostname = "",
145+
hostname = ?,
142146
args = "",
143147
status = ?,
144148
statustime = NOW(),
@@ -148,6 +152,7 @@
148152
$program->chanid,
149153
$program->recstartts,
150154
$_REQUEST['job'],
155+
$host,
151156
JOB_QUEUED,
152157
JOB_USE_CUTLIST
153158
);

0 commit comments

Comments
 (0)