Exemplo n.º 1
0
        protected internal virtual string GetAlbumArtURI(int width, int height)
        {
            width  = ResolutionUtility.GetScaledPixels(width);
            height = ResolutionUtility.GetScaledPixels(height);
            string uri = "{0}/databases/{1}/containers/{2}/extra_data/artwork?mw={3}&mh={4}&session-id={5}";

            return(string.Format(uri, Server.HTTPPrefix, Database.ID, ID, width, height, Server.SessionID));
        }
Exemplo n.º 2
0
        protected internal virtual string GetAlbumArtURI(int width, int height)
        {
            width  = ResolutionUtility.GetScaledPixels(width);
            height = ResolutionUtility.GetScaledPixels(height);
            string uri = "{0}/databases/{1}/groups/{2}/extra_data/artwork?mw={3}&mh={4}&group-type={5}&session-id={6}";

            object groupID;

            if (Server.IsAppleTV)
            {
                groupID = PersistentID;
            }
            else
            {
                groupID = ID;
            }

            return(string.Format(uri, Server.HTTPPrefix, Database.ID, groupID, width, height, GroupType, Server.SessionID));
        }