lib/ayadn/post.rb in ayadn-1.4.6 vs lib/ayadn/post.rb in ayadn-1.5.0

- old
+ new

@@ -44,9 +44,29 @@ def payload_nowplaying dic ann = annotations() if dic['visible'] == true ann << { + "type" => "com.ayadn.nowplaying", + "value" => { + "title" => dic['title'], + "artist" => dic['artist'], + "artwork" => dic['artwork'], + "link" => dic['link'], + "source" => dic['source'] + } + } + else + ann << { + "type" => "com.ayadn.nowplaying", + "value" => { + "status" => "no-url", + "source" => dic['source'] + } + } + end + if dic['visible'] == true + ann << { "type" => "net.app.core.oembed", "value" => { "version" => "1.0", "type" => "photo", "width" => dic['width'],