Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
config: add 'Channel icon name lower-case:' functionality, fixes #3101
  • Loading branch information
perexg committed Sep 25, 2015
1 parent de1f015 commit ca33fbf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/channels.c
Expand Up @@ -595,6 +595,8 @@ channel_get_icon ( channel_t *ch )
if (*s <= ' ' || *s > 122 ||
strchr("/:\\<>|*?'\"", *s) != NULL)
*(char *)s = '_';
else if (config.chicon_lowercase && *s >= 'A' && *s <= 'Z')
*(char *)s = *s - 'A' + 'a';
s++;
}
}
Expand Down
7 changes: 7 additions & 0 deletions src/config.c
Expand Up @@ -1953,6 +1953,13 @@ const idclass_t config_class = {
.off = offsetof(config_t, chicon_path),
.group = 6,
},
{
.type = PT_BOOL,
.id = "chiconlowercase",
.name = N_("Channel icon name lower-case"),
.off = offsetof(config_t, chicon_lowercase),
.group = 6,
},
{
.type = PT_STR,
.id = "piconpath",
Expand Down
1 change: 1 addition & 0 deletions src/config.h
Expand Up @@ -37,6 +37,7 @@ typedef struct config {
char *muxconf_path;
int prefer_picon;
char *chicon_path;
int chicon_lowercase;
char *picon_path;
int tvhtime_update_enabled;
int tvhtime_ntp_enabled;
Expand Down

0 comments on commit ca33fbf

Please sign in to comment.