lib/ayadn/nowplaying.rb in ayadn-2.0.5 vs lib/ayadn/nowplaying.rb in ayadn-2.0.6

- old
+ new

@@ -157,13 +157,15 @@ visible, track, artwork, artwork_thumb, link, artist = true, store['track'], store['artwork'], store['artwork_thumb'], store['link'], store['artist'] end end options = options.dup options[:nowplaying] = true - if options[:lastfm] - source = 'Last.fm' + source = if options[:lastfm] + 'Last.fm' + elsif options[:deezer] + 'Deezer' else - source = 'iTunes' + 'iTunes' end dic = { options: options, text: text_to_post, title: track,