summaryrefslogtreecommitdiff
path: root/videodir.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2021-01-19 20:38:28 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2021-01-19 20:38:28 +0100
commitad35c9c2d331e8c87886ce559fe838b5ac60776b (patch)
tree2858d674e76de6771b457b84c51694be514621b4 /videodir.c
parent1b1465a6775c1f53d1f7ef5ef13c7efdbc42a74a (diff)
downloadvdr-ad35c9c2d331e8c87886ce559fe838b5ac60776b.tar.gz
vdr-ad35c9c2d331e8c87886ce559fe838b5ac60776b.tar.bz2
Added some missing user command calls for copying, renaming and moving recordings
Diffstat (limited to 'videodir.c')
-rw-r--r--videodir.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/videodir.c b/videodir.c
index b2257fa6..c5545285 100644
--- a/videodir.c
+++ b/videodir.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: videodir.c 4.1 2015/08/11 13:39:59 kls Exp $
+ * $Id: videodir.c 5.1 2021/01/19 20:38:28 kls Exp $
*/
#include "videodir.h"
@@ -96,6 +96,11 @@ bool cVideoDirectory::Move(const char *FromName, const char *ToName)
LOG_ERROR_STR(ToName);
return false;
}
+ // detect whether it's a real recording move inside same file system or a recording rename
+ if (strcmp(strgetbefore(FromName, '/', 2), strgetbefore(ToName, '/', 2)))
+ cRecordingUserCommand::InvokeCommand(RUC_MOVEDRECORDING, ToName, FromName);
+ else
+ cRecordingUserCommand::InvokeCommand(RUC_RENAMEDRECORDING, ToName, FromName);
}
else
return RecordingsHandler.Add(ruMove, FromName, ToName);