summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2006-03-26 12:18:12 +0200
committerAndreas Mair <andreas@vdr-developer.org>2006-03-26 12:18:12 +0200
commit54d5f6870a7351584fcb1c3e861a4fc9224badf3 (patch)
treefb51954380f42e8827a0a8fa757ef12e17e4e0f9 /tools.c
parent20683b994128131bcb22f89f00282cefdc54fc04 (diff)
downloadvdr-plugin-extrecmenu-54d5f6870a7351584fcb1c3e861a4fc9224badf3.tar.gz
vdr-plugin-extrecmenu-54d5f6870a7351584fcb1c3e861a4fc9224badf3.tar.bz2
Version 0.7v0.7
- added frensh translation; thanks to Patrice Staudt - added finnish translation; thanks to Rolf Ahrenberg - several bugfixes: * if there are more then one recording with the same name, only one of it is shown if the recording details are hidden; thanks to Monroe from vdr-portal.de for reporting * recording list entry (not the recording itselfs!) is deleted, if it is moved to the same place; thanks to Monroe from vdr-portal.de for reporting * if a recording was deleted, the selection bar jumps to the first list entry * some people reported problems with wrong recording dates using LinVDR - revised rename-recording-menu; thanks to Monroe from vdr-portal.de for suggesting - revised move-recording-menu - it is now more obvious; thanks to Monroe from vdr-portal.de for suggesting - added option to show an alternative new marker - it's only useful for german speaking users because this icon shows 'NEU'; suggestions for an international version are welcome, you has 22x22 pixels for it - added the functionality of the DvdArchive- and the DVDShowArchive-patch for VDR - thanks fpr vejoun from vdr-portal.de for the script 'dvdarchive.sh'
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/tools.c b/tools.c
new file mode 100644
index 0000000..246455f
--- /dev/null
+++ b/tools.c
@@ -0,0 +1,23 @@
+#include <vdr/videodir.h>
+#include <vdr/recording.h>
+#include "tools.h"
+
+bool MoveVideoFile(cRecording *Recording,char *NewName)
+{
+ if(!strcmp(Recording->FileName(),NewName))
+ return true;
+
+ 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;
+ }
+ }
+ return false;
+}