Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: fix the autorec creation from EPG dialog
  • Loading branch information
perexg committed Sep 9, 2014
1 parent 7863fc9 commit 08b2b29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/dvr/dvr_autorec.c
Expand Up @@ -195,15 +195,16 @@ dvr_autorec_add_series_link(const char *dvr_config_name,
dvr_autorec_entry_t *dae;
htsmsg_t *conf;
char *title;
if (!event || !event->episode || !event->serieslink)
if (!event || !event->episode)
return NULL;
conf = htsmsg_create_map();
title = regexp_escape(epg_broadcast_get_title(event, NULL));
htsmsg_add_str(conf, "title", title);
free(title);
htsmsg_add_str(conf, "config_name", dvr_config_name ?: "");
htsmsg_add_str(conf, "channel", channel_get_name(event->channel));
htsmsg_add_str(conf, "serieslink", event->serieslink->uri);
if (event->serieslink)
htsmsg_add_str(conf, "serieslink", event->serieslink->uri);
htsmsg_add_str(conf, "creator", creator ?: "");
htsmsg_add_str(conf, "comment", comment ?: "");
dae = dvr_autorec_create(NULL, conf);
Expand Down
2 changes: 1 addition & 1 deletion src/webui/static/app/epg.js
Expand Up @@ -166,7 +166,7 @@ tvheadend.epgDetails = function(event) {
win.show();

function recordEvent() {
record('api/dvr/entry/create_by_event')
record('api/dvr/entry/create_by_event');
}

function recordSeries() {
Expand Down

0 comments on commit 08b2b29

Please sign in to comment.