one track bug

This commit is contained in:
vitiko98 2020-08-13 02:08:03 -04:00
parent 9fb700a806
commit b98ffa3960
2 changed files with 6 additions and 6 deletions

View File

@ -49,11 +49,11 @@ 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 i in alb:
if type_[i[1]]:
downloader.iterateIDs(Qz, id_[i[1]], path, quality, True)
for al in alb:
if type_[al[1]]:
downloader.iterateIDs(Qz, id_[al[1]], path, quality, True)
else:
downloader.iterateIDs(Qz, id_[i[1]], path, quality, False)
downloader.iterateIDs(Qz, id_[al[1]], path, quality, False)
def fromUrl(Qz, path, link, quality):

View File

@ -88,9 +88,9 @@ def iterateIDs(client, id, path, quality, album=False):
mkDir(dirn)
getCover(meta['album']['image']['large'], dirn)
if int(quality) == 5:
downloadItem(dirn, count, parse, i, meta, url, False, True)
downloadItem(dirn, count, parse, meta, meta, url, True, True)
else:
downloadItem(dirn, count, parse, i, meta, url, False, False)
downloadItem(dirn, count, parse, meta, meta, url, True, False)
else:
print('Demo. Skipping')