def imagesFromArray(image_objs): images = {} for image_obj in image_objs: size = str(image_obj.width) images[ size] = "https://d3rt1990lpmkn.cloudfront.net/" + size + "/" + utils.gid2id( image_obj.file_id) return images
def track_uri(self, track, callback=False): track = self.recurse_alternatives(track) if not track: return False args = ["mp3160", utils.gid2id(track.gid)] return self.wrap_request("sp/track_uri", args, callback)
def getID(self): return utils.gid2id(self.obj.gid)