summaryrefslogtreecommitdiff
path: root/contrib/vdr-aio21_svdrprename.patch
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2005-03-06 08:11:12 +0100
committerAndreas Mair <amair.sob@googlemail.com>2005-03-06 08:11:12 +0100
commit7525bed2d315a25ac2caf95ff0bf44c905d58a7e (patch)
tree64f68331dd109cf5c92182d10bb53c614db4a73b /contrib/vdr-aio21_svdrprename.patch
downloadvdradmin-am-7525bed2d315a25ac2caf95ff0bf44c905d58a7e.tar.gz
vdradmin-am-7525bed2d315a25ac2caf95ff0bf44c905d58a7e.tar.bz2
2005-03-06: 0.97-am1 "initial release"v0.97-am1
This is mainly the lastest vdradmin (v0.97) with different patches applied: - vdradmin-0.97 has been taken from linvdr-0.7. - xpix's BigPatch_0.9pre5 (ported from vdradmin-0.95 to vdradmin-0.97 (see HISTORY.bigpatch). - included changes from vdradmin-0.95-ct-10 (see HISTORY.ct). - included vdradmin-0.95_0.9_pre5_fb1.diff (see HISTORY.macfly). - included vdradmin-0.96-rename.diff which also needs an applied "vdr-aio21_svdrprename.patch" patch (don't know the author right now). My own changes: - included missing "Was läuft heute?" template (found at www.vdr-portal.de). - fixed some rendering problems with "New Timer" and "New Autotimer" on KDE's Konqueror. - Beautified recordings listing (at least in my eyes ;-) - Added "Size" selectbox to TV template.
Diffstat (limited to 'contrib/vdr-aio21_svdrprename.patch')
-rwxr-xr-xcontrib/vdr-aio21_svdrprename.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/contrib/vdr-aio21_svdrprename.patch b/contrib/vdr-aio21_svdrprename.patch
new file mode 100755
index 0000000..e279615
--- /dev/null
+++ b/contrib/vdr-aio21_svdrprename.patch
@@ -0,0 +1,65 @@
+diff -Nru vdr-1.3.11/svdrp.c vdr-1.3.11.patch/svdrp.c
+--- vdr-1.3.11/svdrp.c Sun Jun 13 15:38:38 2004
++++ vdr-1.3.11.patch/svdrp.c Thu Aug 26 14:41:54 2004
+@@ -256,6 +256,8 @@
+ " format defined in vdr(5) for the 'epg.data' file. A '.' on a line\n"
+ " by itself terminates the input and starts processing of the data (all\n"
+ " entered data is buffered until the terminating '.' is seen).",
++ "RENR <number> <new name>\n"
++ " Rename recording. Number must be the Number as returned by LSTR command.",
+ "SCAN\n"
+ " Forces an EPG scan. If this is a single DVB device system, the scan\n"
+ " will be done on the primary device unless it is currently recording.",
+@@ -1025,7 +1027,33 @@
+ EITScanner.ForceScan();
+ Reply(250, "EPG scan triggered");
+ }
++void cSVDRP::CmdRENR(const char *Option)
++{
++ bool recordings = Recordings.Load();
++ if (recordings) {
++ if (*Option) {
++ char *tail;
++ int n = strtol(Option, &tail, 10);
++ cRecording *recording = Recordings.Get(n - 1);
++ if (recording && tail && tail != Option) {
++ tail = skipspace(tail);
++ int priority=recording->priority;
++ int lifetime=recording->lifetime;
++ recording->Rename(tail,&priority,&lifetime);
++ Reply (250,"Renamed \"%s\" to \"%s\"",recording->Name(),tail);
++ // Reply (200,"New Name: %s",tail);
++ }
++ else
++ Reply(501, "Recording not found or wrong syntax");
++ }
++ else
++ Reply(501, "Missing Input settings");
++ }
++ else
++ Reply(550, "No recordings available");
++}
+
++
+ void cSVDRP::CmdSTAT(const char *Option)
+ {
+ if (*Option) {
+@@ -1133,6 +1161,7 @@
+ else if (CMD("NEWT")) CmdNEWT(s);
+ else if (CMD("NEXT")) CmdNEXT(s);
+ else if (CMD("PUTE")) CmdPUTE(s);
++ else if (CMD("RENR")) CmdRENR(s);
+ else if (CMD("SCAN")) CmdSCAN(s);
+ else if (CMD("STAT")) CmdSTAT(s);
+ else if (CMD("UPDT")) CmdUPDT(s);
+diff -Nru vdr-1.3.11/svdrp.h vdr-1.3.11.patch/svdrp.h
+--- vdr-1.3.11/svdrp.h Sat Jan 17 14:30:52 2004
++++ vdr-1.3.11.patch/svdrp.h Thu Aug 26 14:41:54 2004
+@@ -73,6 +73,7 @@
+ void CmdNEWT(const char *Option);
+ void CmdNEXT(const char *Option);
+ void CmdPUTE(const char *Option);
++ void CmdRENR(const char *Option);
+ void CmdSCAN(const char *Option);
+ void CmdSTAT(const char *Option);
+ void CmdUPDT(const char *Option);