Skip to content

Commit

Permalink
Adding support for channel logos for channels with decimals by using …
Browse files Browse the repository at this point in the history
…an underscore in the channel logo definition instead of a period/decimal point.
  • Loading branch information
computmaxer committed Sep 24, 2013
1 parent e58f3f9 commit 940574a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/wallop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ def self.hdhomerun_lineup_url
def self.lineup
lineup = JSON.parse(open(hdhomerun_lineup_url).read)
lineup.each do |l|
if config['channel_logos'][l['GuideNumber']]
l['LogoUrl'] = "#{request_url}/logos/#{config['channel_logos'][l['GuideNumber']]}"
channel_number = l['GuideNumber'].sub(".", "_")
if config['channel_logos'][channel_number]
l['LogoUrl'] = "#{request_url}/logos/#{config['channel_logos'][channel_number]}"
else
l['LogoUrl'] = nil
end
Expand Down

0 comments on commit 940574a

Please sign in to comment.