Project

General

Profile

Feature #3101

[patch] make channel-icons-lower-case

Added by Hanspeter Müller about 9 years ago. Updated about 9 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2015-09-22
Due date:
% Done:

100%

Estimated time:

Description

Hi,

i've been using this patch to make all icon-names lower case (it's much easier to maintain this way and i can simply "sanitize" all files from different sources). If you find this usefull, could someone apply this (or, make a selectable option, which is way above my programming skills) :)

diff --git a/src/channels.c b/src/channels.c
index 6ae0619..b3235cb 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -592,6 +592,8 @@ channel_get_icon ( channel_t *ch )
         /* Remove problematic characters */
         s = sname;
         while (s && *s) {
+          if (*s <= 'Z' && *s >= 'A')
+            *(char *)s = *s - 'A' + 'a';
           if (*s <= ' ' || *s > 122 ||
               strchr("/:\\<>|*?'\"", *s) != NULL)
             *(char *)s = '_';

History

#1

Updated by saen acro about 9 years ago

Isn't it better to have "ignore case"?

#2

Updated by Jaroslav Kysela about 9 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:tvheadend|ca33fbf239db42682c83ebf7426b2dabea9bc9fb.

#3

Updated by Hanspeter Müller about 9 years ago

Thaaaankyou :)

Also available in: Atom PDF