mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-16 00:25:31 +01:00
hopefully fixed 503 errors on itunes import
This commit is contained in:
@@ -21,8 +21,10 @@ def itunesImport(pathtoxml):
|
||||
rawlist = {}.fromkeys(lst).keys()
|
||||
artistlist = [f for f in rawlist if f != None]
|
||||
for name in artistlist:
|
||||
time.sleep(1)
|
||||
artistResults = ws.Query().getArtists(ws.ArtistFilter(string.replace(name, '&', '%38'), limit=1))
|
||||
for result in artistResults:
|
||||
time.sleep(1)
|
||||
artistid = u.extractUuid(result.artist.id)
|
||||
inc = ws.ArtistIncludes(releases=(m.Release.TYPE_OFFICIAL, m.Release.TYPE_ALBUM), ratings=False, releaseGroups=False)
|
||||
artist = ws.Query().getArtistById(artistid, inc)
|
||||
|
||||
Reference in New Issue
Block a user