diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/README.vdr-aio21_svdrprename.patch | 3 | ||||
-rwxr-xr-x | contrib/findunusedimage.sh | 8 | ||||
-rw-r--r-- | contrib/gentoo.rc.vdradmind | 20 | ||||
-rw-r--r-- | contrib/vdr-1.2.0-recordings-length.diff | 15 | ||||
-rwxr-xr-x | contrib/vdr-aio21_svdrprename.patch | 65 |
5 files changed, 111 insertions, 0 deletions
diff --git a/contrib/README.vdr-aio21_svdrprename.patch b/contrib/README.vdr-aio21_svdrprename.patch new file mode 100644 index 0000000..f42a4b6 --- /dev/null +++ b/contrib/README.vdr-aio21_svdrprename.patch @@ -0,0 +1,3 @@ +Don't know the patch's author at the moment, found the patch at www.vdr-portal.de. + +This patch applies from vdr 1.3.19 - 1.3.22 even without enAIO patch (even if the patch's name suggests it). diff --git a/contrib/findunusedimage.sh b/contrib/findunusedimage.sh new file mode 100755 index 0000000..740005a --- /dev/null +++ b/contrib/findunusedimage.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +for i in bilder/*; do + grep `basename $i` *.html >/dev/null + if [ $? != 0 ]; then + echo $i + fi +done diff --git a/contrib/gentoo.rc.vdradmind b/contrib/gentoo.rc.vdradmind new file mode 100644 index 0000000..b0f8fb5 --- /dev/null +++ b/contrib/gentoo.rc.vdradmind @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /cvsroot/gentoo-deutsch/ebuilds/net-www/vdradmind/files/rc.vdradmind,v 1.2 2003/05/26 20:06:22 mad Exp $ + +depend() { + need vdr +} + +start() { + ebegin "Starting vdradmind" + /usr/bin/vdradmind.pl + eend $? +} + +stop() { + ebegin "Stopping vdradmind" + start-stop-daemon --stop --quiet --pidfile /var/run/vdradmind.pid + eend $? +} diff --git a/contrib/vdr-1.2.0-recordings-length.diff b/contrib/vdr-1.2.0-recordings-length.diff new file mode 100644 index 0000000..a403e8e --- /dev/null +++ b/contrib/vdr-1.2.0-recordings-length.diff @@ -0,0 +1,15 @@ +diff -uHr vdr-1.2.0.patched/svdrp.c vdr-1.2.0/svdrp.c +--- vdr-1.2.0.patched/svdrp.c 2003-04-27 16:21:07.000000000 +0200 ++++ vdr-1.2.0/svdrp.c 2003-06-06 21:34:03.000000000 +0200 +@@ -726,7 +726,10 @@ + else if (recordings) { + cRecording *recording = Recordings.First(); + while (recording) { +- Reply(recording == Recordings.Last() ? 250 : -250, "%d %s", recording->Index() + 1, recording->Title(' ', true)); ++ cIndexFile *oIndex = new cIndexFile(recording->FileName(), false); ++ const char *sTime = IndexToHMSF(oIndex->Last()); ++ Reply(recording == Recordings.Last() ? 250 : -250, "%d %s\t<%s>", recording->Index() + 1, recording->Title(' ', true), sTime); ++ delete oIndex; + recording = Recordings.Next(recording); + } + } 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); |