Skip to content

Commit

Permalink
Add option to ignore-epg-icons under misc
Browse files Browse the repository at this point in the history
  • Loading branch information
guyspr committed Aug 20, 2018
1 parent 3976861 commit 66fb277
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 66fb277

Please sign in to comment.