Skip to content

Commit

Permalink
search timer ext. epg info
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Ehrnsperger committed Jul 10, 2024
1 parent e383802 commit 839abd3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 7 additions & 3 deletions pages/edit_searchtimer.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ using namespace vdrlive;
int keeprecs = 0;
int pauseonrecs = 0;
int blacklistmode = 0;
std::string blacklistids[];
int switchminbefore = 0;
bool useextepginfo = false;
std::string extepgvalues[];
Expand Down Expand Up @@ -98,6 +97,11 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");

#define SELECTIF(x) reply.out() << ( (x) ? "selected=\"selected\"" : "" );
#define CHECKIF(x) reply.out() << ( (x) ? "checked=\"checked\"" : "" );
#if TNTVERSION >= 30000
const char *TNT_ARRAY = "[]";
#else
const char *TNT_ARRAY = "";
#endif

SearchTimers searchtimers;
bool testmode = !test.empty();
Expand Down Expand Up @@ -559,7 +563,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
% int i=0; for (ExtEPGInfos::iterator extinfo = extEPGInfos.begin(); extinfo != extEPGInfos.end(); ++extinfo, i++) {
<tr>
<td class="label"><div class="withmargin"><$ extinfo->Name() $></div></td>
<td><input type="text" name="extepgvalues" value="<$extepgvalues[i]$>" size="20" id="extepg_<{ reply.out() << extinfo->Id(); }>_value"/></td>
<td><input type="text" name="extepgvalues<$TNT_ARRAY$>" value="<$extepgvalues[i]$>" size="20" id="extepg_<{ reply.out() << extinfo->Id(); }>_value"/></td>
% if (extinfo->Values().size() > 0) {
<td >
<select size="3" multiple="multiple" align="left" valign="top" name="extepg_<{ reply.out() << extinfo->Id(); }>" onchange="changedextepginfo(this)">
Expand Down Expand Up @@ -818,7 +822,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
% int i=0; for (ExtEPGInfos::iterator extinfo = extEPGInfos.begin(); extinfo != extEPGInfos.end(); ++extinfo, i++) {
<tr>
<td class="label"><div class="withmargin"><$ tr("Compare" ) $> <$ extinfo->Name() $>:</div></td>
<td><input type="checkbox" name="avoidrepeatscatselected" value="<$ i+1 $>" <{ CHECKIF(avoidrepeatscatselected[i]) }>/></td>
<td><input type="checkbox" name="avoidrepeatscatselected<$TNT_ARRAY$>" value="<$ i+1 $>" <{ CHECKIF(avoidrepeatscatselected[i]) }>/></td>
</tr>
% }
% }
Expand Down
9 changes: 7 additions & 2 deletions pages/searchepg.ecpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ using namespace vdrlive;
bool wday_sat = false;
bool wday_sun = false;
int blacklistmode = 0;
std::string blacklistids[];
bool useextepginfo = false;
std::string extepgvalues[];
std::string blacklistids_internal;
Expand All @@ -62,6 +61,12 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");

#define SELECTIF(x) reply.out() << ( (x) ? "selected=\"selected\"" : "" );
#define CHECKIF(x) reply.out() << ( (x) ? "checked=\"checked\"" : "" );
#if TNTVERSION >= 30000
const char *TNT_ARRAY = "[]";
#else
const char *TNT_ARRAY = "";
#endif


searchtimer = 0;
tChannelID channelfrom = tChannelID::FromString(channelfrom_string.c_str());
Expand Down Expand Up @@ -324,7 +329,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
<tr valign="top">
<td align="left" valign="top"><$ extinfo->Name() $></td>
<td align="left" valign="top">
<input type="text" name="extepgvalues" value="<$extepgvalues[i]$>" size="10" id="extepg_<{ reply.out() << extinfo->Id(); }>_value"/>
<input type="text" name="extepgvalues<$TNT_ARRAY$>" value="<$extepgvalues[i]$>" size="10" id="extepg_<{ reply.out() << extinfo->Id(); }>_value"/>
</td>
% if (extinfo->Values().size() > 0) {
<td>
Expand Down

0 comments on commit 839abd3

Please sign in to comment.