|
|
|
[PATCH] vdr 1.7.27 - can add groupsep with NEWC | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hi, The attached patch adds the possibility to add group separators to the channels via SVDRP's NEWC command. Lars.
diff --git a/svdrp.c b/svdrp.c
index 01366dd..ce806ac 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -257,8 +257,8 @@ const char *HelpPages[] = {
"MOVC <number> <to>\n"
" Move a channel to a new position.",
"NEWC <settings>\n"
- " Create a new channel. Settings must be in the same format as returned\n"
- " by the LSTC command.",
+ " Create a new channel or group separator. Settings must be in the\n"
+ " same format as returned by the LSTC command.",
"NEWT <settings>\n"
" Create a new timer. Settings must be in the same format as returned\n"
" by the LSTT command. It is an error if a timer with the same channel,\n"
@@ -1294,7 +1294,7 @@ void cSVDRP::CmdNEWC(const char *Option)
if (*Option) {
cChannel ch;
if (ch.Parse(Option)) {
- if (Channels.HasUniqueChannelID(&ch)) {
+ if (ch.GroupSep() || Channels.HasUniqueChannelID(&ch)) {
cChannel *channel = new cChannel;
*channel = ch;
Channels.Add(channel);
_______________________________________________ vdr mailing list vdr@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
[Linux Media] [Asterisk] [Photo] [DCCP] [Netdev] [Xorg] [Util Linux NG] [Xfree86] [Devices] [Big List of Linux Books] [Fedora Users] [Webcams] [Fedora Women] [ALSA Devel] [Linux USB]
![]() |