use iso format for date in default timerec title
as local date format often conflicts with sorting/playback order also update documentation with pointers to escape-code documentation
This commit is contained in:
parent
6327ca671e
commit
2f830922f5
2 changed files with 11 additions and 6 deletions
|
@ -56,14 +56,19 @@ When specified, this setting overrides the subdirectory rules specified by the D
|
||||||
<p>
|
<p>
|
||||||
<dt><b>Title</b>
|
<dt><b>Title</b>
|
||||||
<dd>
|
<dd>
|
||||||
Not sure how this differs from **Name* *
|
The title is used in the filename that is created for the recording
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
The default format string suggests Time-[date]-[time]:
|
The default format string suggests Time-[date]_[time]:
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
%x The local date, formatted according to your locale settings
|
The escape-codes use <a href="http://man7.org/linux/man-pages/man3/strftime.3.html">strftime</a> format. Examples:
|
||||||
%R The time in HH;MM format
|
<br>
|
||||||
|
%F The date in ISO-format (e.g. 2015-02-28)
|
||||||
|
<br>
|
||||||
|
%R The time in 24h HH:MM format (e.g. 19:45)
|
||||||
|
<br>
|
||||||
|
%x The date, formatted according to your locale settings
|
||||||
<p>
|
<p>
|
||||||
<dt><b>Channel</b>
|
<dt><b>Channel</b>
|
||||||
<dd>
|
<dd>
|
||||||
|
|
|
@ -183,7 +183,7 @@ dvr_timerec_create(const char *uuid, htsmsg_t *conf)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
dte->dte_title = strdup("Time-%x-%R");
|
dte->dte_title = strdup("Time-%F_%R");
|
||||||
dte->dte_weekdays = 0x7f;
|
dte->dte_weekdays = 0x7f;
|
||||||
dte->dte_pri = DVR_PRIO_NORMAL;
|
dte->dte_pri = DVR_PRIO_NORMAL;
|
||||||
dte->dte_start = -1;
|
dte->dte_start = -1;
|
||||||
|
@ -557,7 +557,7 @@ const idclass_t dvr_timerec_entry_class = {
|
||||||
.id = "title",
|
.id = "title",
|
||||||
.name = "Title",
|
.name = "Title",
|
||||||
.off = offsetof(dvr_timerec_entry_t, dte_title),
|
.off = offsetof(dvr_timerec_entry_t, dte_title),
|
||||||
.def.s = "Time-%x-%R",
|
.def.s = "Time-%F_%R",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.type = PT_STR,
|
.type = PT_STR,
|
||||||
|
|
Loading…
Add table
Reference in a new issue