summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
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;
}