Ejemplo n.º 1
0
def searchSelected(Qz, path, albums, ids, types, quality):
    q = ["5", "6", "7", "27"]
    quality = q[quality[1]]
    for alb, id_, type_ in zip(albums, ids, types):
        for al in alb:
            downloader.iterateIDs(Qz, id_[al[1]], path, quality,
                                  True if type_[al[1]] else False)
Ejemplo n.º 2
0
def fromUrl(Qz, path, link, quality):
    if "/track/" in link:
        id = get_id(link)
        downloader.iterateIDs(Qz, id, path, quality, False)
    else:
        id = get_id(link)
        downloader.iterateIDs(Qz, id, path, quality, True)
Ejemplo n.º 3
0
def searchSelected(Qz, path, albums, ids, types, quality):
    q = ['5', '6', '7', '27']
    quality = q[quality[1]]
    for alb, id_, type_ in zip(albums, ids, types):
        for al in alb:
            if type_[al[1]]:
                downloader.iterateIDs(Qz, id_[al[1]], path, quality, True)
            else:
                downloader.iterateIDs(Qz, id_[al[1]], path, quality, False)
Ejemplo n.º 4
0
def fromUrl(Qz, path, link, quality):
    if '/track/' in link:
        id = get_id(link)
        downloader.iterateIDs(Qz, id, path, quality, 'track')
    elif '/playlist/' in link:
        id = get_id(link)
        downloader.iterateIDs(Qz, id, path, quality, 'playlist')
    else:
        id = get_id(link)
        downloader.iterateIDs(Qz, id, path, quality, 'album')
Ejemplo n.º 5
0
def fromUrl(Qz, id, path, quality, album=True):
    downloader.iterateIDs(Qz, id, path, str(quality), album)
Ejemplo n.º 6
0
def fromUrl(Qz, path, link, quality):
    id = get_id(link)
    downloader.iterateIDs(Qz, id, path, str(quality),
                          False if "/track/" in link else True)