Fix #1393 - minor aesthetic change, remove trailing slash from user config DVR directory.
(cherry picked from commit c05f93da53
)
This commit is contained in:
parent
0e589a3a43
commit
4f9f348503
1 changed files with 5 additions and 0 deletions
|
@ -205,6 +205,11 @@ pvr_generate_filename(dvr_entry_t *de, const streaming_start_t *ss)
|
|||
|
||||
snprintf(path, sizeof(path), "%s", cfg->dvr_storage);
|
||||
|
||||
/* Remove trailing slash */
|
||||
|
||||
if (path[strlen(path)-1] == '/')
|
||||
path[strlen(path)-1] = '\0';
|
||||
|
||||
/* Append per-day directory */
|
||||
|
||||
if(cfg->dvr_flags & DVR_DIR_PER_DAY) {
|
||||
|
|
Loading…
Add table
Reference in a new issue