Skip to content

Better support for station/show logos #16

@kingosticks

Description

@kingosticks

Currently only support station logos but should be able to more easily get show logos with this fun snippet (from https://code.google.com/p/radiotime-tools/source/browse/trunk/clients/js/src/js/radiotime.js)

logoSizes: {"square": "q", "small": "s", "normal": ""}, 
        logoFormats: {"png":"png","gif":"gif"},
        getLogoUrl: function(guide_id, logoSize, logoFormat) {
                var logoSizeCode = RadioTime.logoSizes[logoSize] || "";
                var logoFormat = RadioTime.logoFormats[logoFormat] || "png";
                return "http://radiotime-logos.s3.amazonaws.com/" + guide_id + logoSizeCode + "." + logoFormat;
        },

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions