summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2006-05-02 19:11:38 +0200
committerAndreas Mair <andreas@vdr-developer.org>2006-05-02 19:11:38 +0200
commit47a981960f1d0b6d0d8cbe3bdc15f2b9e8665731 (patch)
tree912ec408b85195c6298a55276587535427ae83fd /tools.c
parent3c04e4ce347dff915def3a79f348f2f46e60564d (diff)
downloadvdr-plugin-extrecmenu-47a981960f1d0b6d0d8cbe3bdc15f2b9e8665731.tar.gz
vdr-plugin-extrecmenu-47a981960f1d0b6d0d8cbe3bdc15f2b9e8665731.tar.bz2
Version 0.10v0.10
- made changes to Makefile for APIVERSION (VDR >= 1.3.47) - changed myReplayControl; suggested by Thomas Günther - added display of free disk space to the title bar - fixed adjustments for BigPatch/CmdSubMenu-patch; thanks to Thomas Günther for the patch - renaming/moving directories is now possible - fixed escaping of parameters for dvdarchive.sh - changed behaviour if the replay of a recording ends, plugins will not open - 'Play' and 'Menu'->'Blue' for resuming a replay work now; BUT: the replay isn't done with the plugin if you start replaying this way, means if you stop the replay you come to VDR's recordings menu - switched off editing of details (priority and lifetime) or archive dvd recordings to avoid trouble with the dir name that identifies it on the media - added option to mark last replayed recording while opening the plugin - added possibilty to include video dvd's into the recordings hierarchy; see README - introduced new parameters for the '-r'-option if VDR: move, rename and delete
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c31
1 files changed, 5 insertions, 26 deletions
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 <vdr/videodir.h>
@@ -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;
}