diff options
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | HISTORY.DE | 3 | ||||
-rw-r--r-- | epgsearchext.c | 6 |
3 files changed, 9 insertions, 2 deletions
@@ -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 @@ -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) { |