summaryrefslogtreecommitdiff
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
parent6d4186ba7a6f04e3ff3d4e1e649dac16bf21702c (diff)
downloadvdr-plugin-epgsearch-c7087c922e515ca3a3f52bed3cd97dbb4dcd53d3.tar.gz
vdr-plugin-epgsearch-c7087c922e515ca3a3f52bed3cd97dbb4dcd53d3.tar.bz2
new default for recording filename if there is no subtitle
-rw-r--r--HISTORY2
-rw-r--r--HISTORY.DE3
-rw-r--r--epgsearchext.c6
3 files changed, 9 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 9666e66..8461e8e 100644
--- a/HISTORY
+++ b/HISTORY
@@ -96,6 +96,8 @@ new:
when testing for complete recordings. 98% and more are handled as complete.
- switch timers are now also visible in all search results EPG menus
- Avoid repeats: in 'compare summary' one can now adjust the required match, default is 90%.
+- if there is no subtitle the filename now defaults to YYYY.MM.DD-HH.MM-Weekday to ease
+ sorting in some frontends, thanks to Dominic Evans for providing a patch
fixes:
- fixed a crash when pressing 'Ok' in an empty timers done menu
diff --git a/HISTORY.DE b/HISTORY.DE
index 0ad6954..caf4239 100644
--- a/HISTORY.DE
+++ b/HISTORY.DE
@@ -101,6 +101,9 @@ neu:
- Umschalttimer sind nun ebenfalls in alle EPG-Menüs mit Suchergebnissen sichtbar.
- Vermeide Wiederholung: Bei 'Vergleiche Beschreibung' kann nun angegeben werden wie hoch
die Übereinstimmung sein muss, Default ist 90%.
+- falls kein Episodenname existiert, wird nun als Dateiname YYYY.MM.DD-HH.MM-Weekday
+ verwendet, um die Sortierung in manchen Frontends zu erleichtern. Danke an Dominic
+ Evans für einen Patch.
fixes:
- Absturz beim Drücken von 'Ok' in leerem Menü erledigter Timer behoben
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)
{