summaryrefslogtreecommitdiff
path: root/epgsearchext.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger@gmx.de>2010-06-13 13:22:28 +0200
committerChristian Wieninger <cwieninger@gmx.de>2010-06-13 13:22:28 +0200
commitc7087c922e515ca3a3f52bed3cd97dbb4dcd53d3 (patch)
treeead68fd691afef5e8a109de3d7f03172ff0e4f2a /epgsearchext.c
parent6d4186ba7a6f04e3ff3d4e1e649dac16bf21702c (diff)
downloadvdr-plugin-epgsearch-c7087c922e515ca3a3f52bed3cd97dbb4dcd53d3.tar.gz
vdr-plugin-epgsearch-c7087c922e515ca3a3f52bed3cd97dbb4dcd53d3.tar.bz2
new default for recording filename if there is no subtitle
Diffstat (limited to 'epgsearchext.c')
-rw-r--r--epgsearchext.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epgsearchext.c b/epgsearchext.c
index 26ff95a..f6f75cb 100644
--- a/epgsearchext.c
+++ b/epgsearchext.c
@@ -639,8 +639,10 @@ char* cSearchExt::BuildFile(const cEvent* pEvent) const
char SubtitleBuffer[Utf8BufSize(MAX_SUBTITLE_LENGTH)];
if (isempty(Subtitle))
{
- sprintf(SubtitleBuffer, "%s-%s", GETDATESTRING(pEvent), GETTIMESTRING(pEvent));
- Subtitle = SubtitleBuffer;
+ time_t Start = pEvent->StartTime();
+ struct tm tm_r;
+ strftime(SubtitleBuffer, sizeof(SubtitleBuffer), "%Y.%m.%d-%R-%a", localtime_r(&Start, &tm_r));
+ Subtitle = SubtitleBuffer;
}
else if (Utf8StrLen(Subtitle) > MAX_SUBTITLE_LENGTH)
{