12345-mcpython / bilibili-console

bilibili命令行客户端 Bilibili command line client.
GNU General Public License v3.0
18 stars 3 forks source link

Can not create ”cached“ directory automatically #3

Closed ssanakkana closed 4 months ago

ssanakkana commented 5 months ago

When I run the program, the error message is

File "C:\Users\86139\tool\bilibili-console\main.py", line 988, in play with open(f"cached/{cid}.ass", "w", encoding="utf-8") as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'cached/1561883630.ass'

I found that in main.py, cached directory will not be made. After I made one, the program run successfullly.

Maybe it will be better to improve in the future version?