def fetch(self, albuminfo): url = self.get_url(albuminfo) if url: extension = url.split(".")[-1].lower() bytedata = read(url) return {"extension": extension, "bytedata": bytedata} return None
def _get_image(self, url): return {"extension": "jpg", "bytedata": read(url)}
def _get(self, url): return loads(read(url).decode('utf-8'))