We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a998aa commit 10e990eCopy full SHA for 10e990e
modules/tv/detail.php
@@ -137,12 +137,16 @@
137
138
// Queue a job?
139
if ($program && $program->filename && $_REQUEST['job']) {
140
+ $host = "";
141
+ if (setting("JobsRunOnRecordHost")){
142
+ $host = $program->hostname;
143
+ }
144
$db->query('INSERT INTO jobqueue
145
SET chanid = ?,
146
starttime = FROM_UNIXTIME(?),
147
inserttime = NOW(),
148
type = ?,
- hostname = "",
149
+ hostname = ?,
150
args = "",
151
status = ?,
152
statustime = NOW(),
@@ -152,6 +156,7 @@
156
$program->chanid,
153
157
$program->recstartts,
154
158
$_REQUEST['job'],
159
+ $host,
155
160
JOB_QUEUED,
161
JOB_USE_CUTLIST
162
);
0 commit comments