mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-02-16 03:28:17 +01:00
sid value fix for some picons
This commit is contained in:
@@ -109,6 +109,9 @@ class PiconsParser(HTMLParser):
|
||||
namespace = "{:X}{:X}".format(int(pos), int(freq))
|
||||
else:
|
||||
namespace = "{:X}0000".format(int(pos))
|
||||
|
||||
if single and not ssid.isdigit():
|
||||
ssid = "".join(c for c in ssid if c.isdigit()) or "0"
|
||||
name = PiconsParser.format(ssid if single else p.ssid, on_id, namespace, picon_ids, s_type)
|
||||
p_name = picons_path + (name if name else os.path.basename(p.ref))
|
||||
picons_data.append(("{}{}".format(PiconsParser._BASE_URL, p.ref), p_name))
|
||||
|
||||
@@ -556,7 +556,10 @@ class PiconsDialog:
|
||||
executor.shutdown()
|
||||
return
|
||||
|
||||
picons.extend(future.result())
|
||||
pic = future.result()
|
||||
if pic:
|
||||
picons.extend(pic)
|
||||
|
||||
# Getting picon images.
|
||||
futures = {executor.submit(download_picon, pic[0], pic[1], self.append_output): pic for pic in picons}
|
||||
done, not_done = concurrent.futures.wait(futures, timeout=0)
|
||||
|
||||
Reference in New Issue
Block a user