Skip to content

Commit

Permalink
Merge pull request #151 from guyspr/dev
Browse files Browse the repository at this point in the history
Add option to ignore-epg-icons under misc
  • Loading branch information
robbiet480 authored Aug 20, 2018
2 parents 3976861 + 66fb277 commit fdcaa93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lineup.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ func (l *lineup) processProviderChannel(channel *providers.ProviderChannel, prog
}

if channel.Logo != "" && channel.EPGChannel != nil && !containsIcon(channel.EPGChannel.Icons, channel.Logo) {
if viper.GetBool("misc.ignore-epg-icons") {
channel.EPGChannel.Icons = nil
}
channel.EPGChannel.Icons = append(channel.EPGChannel.Icons, xmltv.Icon{Source: channel.Logo})
}

Expand Down

0 comments on commit fdcaa93

Please sign in to comment.