New field available in station: stationLogo

New field available in station: stationLogo

Postby rkulagow » Mon Feb 13, 2017 10:00 pm

A new element has been added to the station JSON: "stationLogo".

This is an array of values which will be used to hold station logos. The existing API-20141201 uses a fixed "logo" element which can only hold the information for one logo, which isn't scalable.

In API-"Next", the "logo" element will be removed; only the "stationLogo" array will exist. (And it may contain only a single logo element.)

The updated JSON will look like the following:

Code: Select all
{
    "stationID": "53409",
    "name": "1-2-3.tv",
    "callsign": "123TVGR",
    "broadcastLanguage": [
        "de"
    ],
    "descriptionLanguage": [
        "de"
    ],
    "logo": {
        "URL": "https://s3.amazonaws.com/schedulesdirect/assets/stationLogos/s53409_h3_aa.png",
        "height": 270,
        "width": 360,
        "md5": "19648f055c2b3961f4d2d6"
    },
    "stationLogo": [
        {
            "URL": "https://s3.amazonaws.com/schedulesdirect/assets/stationLogos/s53409_h3_aa.png",
            "height": 270,
            "width": 360,
            "md5": "19648f055c2b3961f4d2d6",
            "source": "Gracenote"
        },
        {
            "URL": "https://s3.amazonaws.com/schedulesdirect/assets/stationLogos/s53409_h3_ba.png",
            "height": 270,
            "width": 360,
            "md5": "938ac9c97c5c91cb34548a",
            "source": "Gracenote"
        }
    ]
}


Logos may include variations such as color and texture; if the default logo is invisible because it is blending into the background of your theme, one of the other logos in the stationLogo array may be better suited.

Request for Comment period ends on 2017-02-20, at which time I will begin updating the JSON for the stations and the API documentation.
rkulagow
SD Staff
 
Posts: 845
Joined: Tue Aug 14, 2007 3:15 pm

Re: New field available in station: stationLogo

Postby rkulagow » Wed Mar 01, 2017 12:40 pm

rkulagow
SD Staff
 
Posts: 845
Joined: Tue Aug 14, 2007 3:15 pm


Return to Developer

Who is online

Users browsing this forum: No registered users and 2 guests

cron