summaryrefslogtreecommitdiff
path: root/contrib/vdr-aio21_svdrprename.patch
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2005-06-22 14:42:18 +0200
committerAndreas Mair <amair.sob@googlemail.com>2005-06-22 14:42:18 +0200
commit1f33deeae237bdcc4281de03d268528d4a09edd3 (patch)
treeba27f73a162201dc1f33a83cdb77ca724ab22fa8 /contrib/vdr-aio21_svdrprename.patch
parentd6922e850779c4ff9d8bcbcef9842cf333eb8638 (diff)
downloadvdradmin-am-1f33deeae237bdcc4281de03d268528d4a09edd3.tar.gz
vdradmin-am-1f33deeae237bdcc4281de03d268528d4a09edd3.tar.bz2
2005-06-22: 0.97-am3.3rcv0.97-am3.3rc
- Updated all help messages. - Added beautified tooltips in timer_list. PLEASE COMMENT!!! - Changed saving of AutoTimer patterns: ":" -> "|" and "|" -> "\|". - Added support for user.css for overwriting style.css (Must be located in /etc/vdradmin/). See user.css.example. PLEASE COMMENT ON THIS!!! - Removed obsolete files (e.g. images). - Merged style.css and navi.css. - Reworked templates so that they use a lot of CSS (Tested using Konqueror 3.3.2 and Firefox 1.0.4). - Fixed programming timers with special summary when using EPG_DIRECT (timer didn't get programmed) (Thanks to HolgerAusB for giving vital hints). - Allow browsers to cache all files VDRAdmin sends, except "text/html". This should speed up VDRAdmin but changing the skin or css needs a "shift reload". - Added support for VDR v1.3.25's info.vdr (Submitted by vejoun). - Use localized date formates. - Now using "video/x-mpegurl" MIME type instead of "audio/x-mpegurl" for streaming (Suggested by stefan.h). - Added patches supplied by stefan.h: -> using EPG's subtitle when found for AutoTimer else " " (that's the VDR way). -> New config option VDRVFAT to find recordings if VDR has been compiled with or without VFAT define. - Fixed calling reccmds on recordings in subdirs, manual recordings (@rectitle) and repeating timer's recordings without episode title. - Fixed streaming of manual recordings (@rectitle) and repeating timer's recordings without episode title. - VDRAdmin-AM now uses the required charsets setting in templates, so no need to write "&xyz;" things in .po files. - Reworked templates to make better use of CSS (for example: timeline colours can be set by style.css). - EPG_PRUNE now is the number of channels to fetch from VDR (had been one too less before). - Added "install.sh" and "uninstall.sh" ("./install.sh -h" for help) (Requested by several people). - Made "name" columns in lists wrapping again (Reported by vejoun). - Deleting a single recording works again (Reported by vejoun). - Fixed streaming of recordings in subdirs (Reported by vejoun). - Added missing gray sign on deactivated AutoTimers (Reported by vejoun).
Diffstat (limited to 'contrib/vdr-aio21_svdrprename.patch')
-rw-r--r--contrib/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 100644
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);