From 47a981960f1d0b6d0d8cbe3bdc15f2b9e8665731 Mon Sep 17 00:00:00 2001 From: Martin Prochnow Date: Tue, 2 May 2006 19:11:38 +0200 Subject: =?UTF-8?q?Version=200.10=20-=20made=20changes=20to=20Makefile=20f?= =?UTF-8?q?or=20APIVERSION=20(VDR=20>=3D=201.3.47)=20-=20changed=20myRepla?= =?UTF-8?q?yControl;=20suggested=20by=20Thomas=20G=FCnther=20-=20added=20d?= =?UTF-8?q?isplay=20of=20free=20disk=20space=20to=20the=20title=20bar=20-?= =?UTF-8?q?=20fixed=20adjustments=20for=20BigPatch/CmdSubMenu-patch;=20tha?= =?UTF-8?q?nks=20to=20Thomas=20G=FCnther=20for=20the=20patch=20-=20renamin?= =?UTF-8?q?g/moving=20directories=20is=20now=20possible=20-=20fixed=20esca?= =?UTF-8?q?ping=20of=20parameters=20for=20dvdarchive.sh=20-=20changed=20be?= =?UTF-8?q?haviour=20if=20the=20replay=20of=20a=20recording=20ends,=20plug?= =?UTF-8?q?ins=20will=20not=20open=20-=20'Play'=20and=20'Menu'->'Blue'=20f?= =?UTF-8?q?or=20resuming=20a=20replay=20work=20now;=20BUT:=20the=20replay?= =?UTF-8?q?=20isn't=20done=20with=20the=20plugin=20if=20you=20start=20repl?= =?UTF-8?q?aying=20this=20way,=20means=20if=20you=20stop=20the=20replay=20?= =?UTF-8?q?you=20come=20to=20VDR's=20recordings=20menu=20-=20switched=20of?= =?UTF-8?q?f=20editing=20of=20details=20(priority=20and=20lifetime)=20or?= =?UTF-8?q?=20archive=20dvd=20recordings=20to=20avoid=20trouble=20with=20t?= =?UTF-8?q?he=20dir=20name=20that=20identifies=20it=20on=20the=20media=20-?= =?UTF-8?q?=20added=20option=20to=20mark=20last=20replayed=20recording=20w?= =?UTF-8?q?hile=20opening=20the=20plugin=20-=20added=20possibilty=20to=20i?= =?UTF-8?q?nclude=20video=20dvd's=20into=20the=20recordings=20hierarchy;?= =?UTF-8?q?=20see=20README=20-=20introduced=20new=20parameters=20for=20the?= =?UTF-8?q?=20'-r'-option=20if=20VDR:=20move,=20rename=20and=20delete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools.c | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) (limited to 'tools.c') diff --git a/tools.c b/tools.c index 1ab1854..bc9c658 100644 --- a/tools.c +++ b/tools.c @@ -1,8 +1,5 @@ /* * See the README file for copyright information and how to reach the author. - * - * The code for sort recordings is adopted from the SortRecordings-patch - * copyright by FrankJepsen and FRank99 from vdr-portal.de */ #include @@ -10,28 +7,6 @@ #include "tools.h" #include "mymenusetup.h" -bool MoveVideoFile(cRecording *Recording,char *NewName) -{ - if(!strcmp(Recording->FileName(),NewName)) - return true; - - isyslog("[extrecmenu] moving file %s to %s",Recording->FileName(),NewName); - int result=MakeDirs(NewName); - if(result) - { - result=RenameVideoFile(Recording->FileName(),NewName); - if(result) - { - // update recordings list - Recordings.AddByName(NewName); - Recordings.Del(Recording,false); - return true; - } - } - isyslog("[extrecmenu] moving failed"); - return false; -} - // --- myRecListItem ---------------------------------------------------------- myRecListItem::myRecListItem(cRecording *Recording) { @@ -63,8 +38,12 @@ char *myRecListItem::StripEpisodeName(char *s) } t++; } +/* + * The code for sort recordings is adopted from the SortRecordings-patch + * copyright by FrankJepsen and Frank99 from vdr-portal.de +*/ *s1=255; - if(s1&&s2&&(s1==s&&(mysetup.SortRecords&1)||s1!=s&&(mysetup.SortRecords==3||mysetup.SortRecords!=2&&!strchr(".-$ª·",*(s1-1))))) + if(s1&&s2&&(s1==s&&(mysetup.SortRecords&1)||s1!=s&&(mysetup.SortRecords==3||mysetup.SortRecords!=2&&!strchr(".-$ª·",*(s1-1))))) memmove(s1+1,s2,t-s2+1); return s; } -- cgit v1.2.3