Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI JS: Fix the Create AutoRec from main EPG tab
  • Loading branch information
perexg committed Sep 9, 2014
1 parent 08b2b29 commit 547369e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/webui/static/app/epg.js
Expand Up @@ -681,19 +681,19 @@ tvheadend.epg = function() {

function createAutoRec2(params) {
/* Really do it */
params.conf = {
var conf = {
enabled: 1,
comment: 'Created from EPG query',
};
if (params.title) params['title'] = params.title;
if (params.channel) params['channel'] = params.channel;
if (params.tag) params['tag'] = params.tag;
if (params.content_type) params['content_type'] = params.content_type;
if (params.minduration) params['minduration'] = params.minduration;
if (params.maxduration) params['maxduration'] = params.maxduration;
if (params.title) conf.title = params.title;
if (params.channel) conf.channel = params.channel;
if (params.tag) conf.tag = params.tag;
if (params.content_type) conf.content_type = params.content_type;
if (params.minduration) conf.minduration = params.minduration;
if (params.maxduration) conf.maxduration = params.maxduration;
Ext.Ajax.request({
url: 'api/dvr/autorec/create',
params: params
params: { conf: Ext.encode(conf) }
});
}

Expand Down

1 comment on commit 547369e

@ksooo
Copy link
Contributor

@ksooo ksooo commented on 547369e Sep 9, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small bug: In the autorec editor I must specify autorec start time in UTC (which is -2 h off localtime in my case) to define a working rule!

Please sign in to comment.