CharlesPikachu / musicdl

Musicdl: A lightweight music downloader written in pure python.
https://musicdl.readthedocs.io/
Apache License 2.0
1.18k stars 268 forks source link

Set bar_download throws an error when using musicdlgui.py #19

Closed linuxbckp closed 1 year ago

linuxbckp commented 2 years ago

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'

linuxbckp commented 2 years ago

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