fix exception when data-client-items doesn't exist
This commit is contained in:
@@ -424,7 +424,10 @@ class BCFreeDownloader:
|
||||
"band_id": int(li["data-band-id"]),
|
||||
}
|
||||
)
|
||||
for obj in json.loads(html.unescape(grid.get("data-client-items", {}))):
|
||||
|
||||
client_items = grid.get("data-client-items")
|
||||
if client_items:
|
||||
for obj in json.loads(html.unescape(client_items)):
|
||||
if obj.get("filtered"):
|
||||
continue
|
||||
# normalize to fit the other half
|
||||
|
||||
Reference in New Issue
Block a user