• Resolved siamsa

    (@siamsa)


    In the data, I’m trying to display the following fields from the “now_playing – song” subloop starting at line 49:

    “artist”: “”,
    “title”: “”,
    “album”: “”,
    “art”: “”,

    I’m new to APIs and am struggling to get the correct format.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author berkux

    (@berkux)

    Thread Starter siamsa

    (@siamsa)

    I’ve read that page and watched the video several times and I still can’t get it to work. Following your video, I try to insert this code:

    [jsoncontentimporter url=https://cast02.siamsa.ie/public/radio_siamsa/api/live/nowplaying/radio_siamsa basenode=now_playing]{subloop-array:song:-1}{subloop:”song.text”}{/subloop-array:song}[/jsoncontentimporter]

    and I get blank content.

    Could you please help?

    Plugin Author berkux

    (@berkux)

    Try

    [jsoncontentimporter url=https://cast02.siamsa.ie/public/radio_siamsa/api/live/nowplaying/radio_siamsa basenode=now_playing.song]
    {text}<img src={art}>
    [/jsoncontentimporter]

    or

    [jsoncontentimporter url=https://cast02.siamsa.ie/public/radio_siamsa/api/live/nowplaying/radio_siamsa]
    {subloop:now_playing:-1}
    {subloop:now_playing.song:-1}
    {now_playing.song.text}<img src={now_playing.song.art}>
    {/subloop:now_playing.song}
    {/subloop:now_playing}
    [/jsoncontentimporter]
    • This reply was modified 6 years, 6 months ago by berkux.
    Thread Starter siamsa

    (@siamsa)

    Thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Need template for Azuracast Now Playing data’ is closed to new replies.