Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epggrab: match off channel major/minor in addition to name
  • Loading branch information
bfennema authored and perexg committed Mar 22, 2015
1 parent 0b54880 commit e5dc86b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/epggrab/channel.c
Expand Up @@ -40,6 +40,8 @@ int epggrab_channel_match ( epggrab_channel_t *ec, channel_t *ch )
if (LIST_FIRST(&ec->channels)) return 0; // ignore already paired

if (ec->name && !strcmp(ec->name, channel_get_name(ch))) return 1;
int64_t number = channel_get_number(ch);
if ((ec->major || ec->minor) && ec->major == channel_get_major(number) && ec->minor == channel_get_minor(number)) return 1;
return 0;
}

Expand Down

0 comments on commit e5dc86b

Please sign in to comment.