]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
channels: icons - fix lowercase for '%c'
authorJaroslav Kysela <perex@perex.cz>
Fri, 30 Oct 2015 22:02:49 +0000 (23:02 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 30 Oct 2015 22:02:49 +0000 (23:02 +0100)
src/channels.c

index 52548c791384f33faa04348421e91038c496624c..ef38463f62d1bbbe2588633b9add52878d2347ba 100644 (file)
@@ -711,6 +711,11 @@ channel_get_icon ( channel_t *ch )
         if (aname == NULL)
           aname = strdup(chname);
 
+        if (config.chicon_lowercase)
+          for (s = aname; *s; s++)
+            if (*s >= 'A' && *s <= 'Z')
+              *(char *)s = *s - 'A' + 'a';
+
         sname = url_encode(aname);
         free((char *)aname);
       }