def getCategoryCollections(artistId, categoryId): collections_url = VIEW_CATEGORY_COLLECTIONS % (artistId, categoryId) source = downloader.getSource2(url=collections_url) if source: ret = extractCollections(source) else: ret = {} return ret
def getAllCollections(artistId): collections_url = VIEW_ALL_COLLECTIONS % artistId source = downloader.getSource2(url=collections_url) if source: ret = extractCollections(source) else: ret = {} return ret
def getTaggedCollections(artistId, tagName): params = {'tag':tagName, 'id':artistId} query = urlencode(params) collections_url = VIEW_TAGGED_COLLECTIONS_TEMPLATE % query source = downloader.getSource2(url=collections_url) if source: ret = extractCollections(source) else: ret = {} return ret