CharlesPikachu/musicdl

Set bar_download throws an error when using musicdlgui.py

linuxbckp opened this issue · 1 comments

Here is the log:
[linux@fedora musicdlgui]$ python musicdlgui.py
2022-06-10 10:26:03 INFO 正在搜索 周杰伦 来自 QQMUSIC|KUWO|MIGU|QIANQIAN|KUGOU|NETEASE
/usr/lib/python3.10/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host 'app.pd.nf.migu.cn'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
Traceback (most recent call last):
File "/home/linux/musicdl/examples/musicdlgui/musicdlgui.py", line 97, in download
self.bar_download.setValue(download_size / total_size * 100)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'

And the app crashed with this log:
已放弃 (核心已转储)