Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
channel: icons - do not generate auto icon URL with {name-not-set}, f…
…ixes #2661
  • Loading branch information
perexg committed Feb 10, 2015
1 parent 4a9dfec commit 77d947f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/channels.c
Expand Up @@ -45,6 +45,8 @@
#include "bouquet.h"
#include "intlconv.h"

#define CHANNEL_BLANK_NAME "{name-not-set}"

struct channel_tree channels;

struct channel_tag_queue channel_tags;
Expand Down Expand Up @@ -575,7 +577,7 @@ channel_set_tags_by_list ( channel_t *ch, htsmsg_t *tags )
const char *
channel_get_name ( channel_t *ch )
{
static const char *blank = "{name-not-set}";
static const char *blank = CHANNEL_BLANK_NAME;
const char *s;
channel_service_mapping_t *csm;
if (ch->ch_name && *ch->ch_name) return ch->ch_name;
Expand Down Expand Up @@ -642,7 +644,8 @@ channel_get_icon ( channel_t *ch )

/* No user icon - try to get the channel icon by name */
if (!pick && chicon && chicon[0] >= ' ' && chicon[0] <= 122 &&
(chname = channel_get_name(ch)) != NULL && chname[0]) {
(chname = channel_get_name(ch)) != NULL && chname[0] &&
strcmp(chname, CHANNEL_BLANK_NAME)) {
const char *chi, *send, *sname, *s;
chi = strdup(chicon);

Expand Down

0 comments on commit 77d947f

Please sign in to comment.