Пример #1
0
    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
Пример #2
0
    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
Пример #3
0
 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)
Пример #4
0
 def getID(self):
     return utils.gid2id(self.obj.gid)
Пример #5
0
 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)
Пример #6
0
 def getID(self):
     return utils.gid2id(self.obj.gid)