Giter Site home page Giter Site logo

Comments (15)

HFrost0 avatar HFrost0 commented on May 12, 2024

提供一下原始命令,我瞧瞧。可以先排查一下,关闭文件管理和视频播放器等软件

from bilix.

Chengxcy avatar Chengxcy commented on May 12, 2024

提供一下原始命令,我瞧瞧。可以先排查一下,关闭文件管理和视频播放器等软件
重启PC了,使用新版本就有这种现象,0.7.2版本没有问题。
bilix get_video https://www.bilibili.com/video/BV1sV4y1x76y
Snipaste_2022-08-20_22-24-09

from bilix.

HFrost0 avatar HFrost0 commented on May 12, 2024

emmm,你能否帮我试验一下,把D:\Program Files (×86)\Python\lib\site-packages\bilix\utils.py的第54行从

            async with await anyio.open_file(file_list[idx], 'rb') as fa:
                await f.write(await fa.read())
                os.remove(file_list[idx])

改为

            async with await anyio.open_file(file_list[idx], 'rb') as fa:
                await f.write(await fa.read())
            os.remove(file_list[idx])

就是缩进往前一下,因为我在macos和linux上没有遇到这个问题,只能你来帮我测一下了🫠

from bilix.

Chengxcy avatar Chengxcy commented on May 12, 2024

emmm,你能否帮我试验一下,把D:\Program Files (×86)\Python\lib\site-packages\bilix\utils.py的第54行从

            async with await anyio.open_file(file_list[idx], 'rb') as fa:
                await f.write(await fa.read())
                os.remove(file_list[idx])

改为

            async with await anyio.open_file(file_list[idx], 'rb') as fa:
                await f.write(await fa.read())
            os.remove(file_list[idx])

就是缩进往前一下,因为我在macos和linux上没有遇到这个问题,只能你来帮我测一下了🫠
Snipaste_2022-08-20_22-35-59

修改过了,您看一下
Snipaste_2022-08-20_22-38-47

from bilix.

HFrost0 avatar HFrost0 commented on May 12, 2024

看着好像没对齐哦,os前面看着应该要多加一个空格,跟上面那个52 行async with的a对齐

from bilix.

Chengxcy avatar Chengxcy commented on May 12, 2024

看着好像没对齐哦,os前面看着应该要多加一个空格,跟上面那个52 行async with的a对齐

不好意思,让您久等了,现在改好了,刚才在测试,发现可以下载了,但是出现了一个went问题,就是生成的缓存文件没有自动删除,以前没有此问题
Snipaste_2022-08-20_22-45-10
Snipaste_2022-08-20_22-47-55

from bilix.

HFrost0 avatar HFrost0 commented on May 12, 2024

哈哈,你这个对齐错了,应该是52行那个。

from bilix.

Chengxcy avatar Chengxcy commented on May 12, 2024

看着好像没对齐哦,os前面看着应该要多加一个空格,跟上面那个52 行async with的a对齐
确定文件夹事先是空文件夹,没有任何文件,下载后才生成的。

from bilix.

HFrost0 avatar HFrost0 commented on May 12, 2024

我知道了,就是这里代码写的有问题。之前这个地方重构的时候疏忽了,Linux和MacOS的系统可能判定宽松一些,最正确写法应该要在with语句出来之后再对文件进行操作

from bilix.

Chengxcy avatar Chengxcy commented on May 12, 2024

我知道了,就是这里代码写的有问题。之前这个地方重构的时候疏忽了,Linux和MacOS的系统可能判定宽松一些,最正确写法应该要在with语句出来之后再对文件进行操作

那没有其他要测试了吧?

from bilix.

HFrost0 avatar HFrost0 commented on May 12, 2024

我等下会发布0.8.4,你可以先改了试一试,感谢帮忙debug🙏

from bilix.

Chengxcy avatar Chengxcy commented on May 12, 2024

我等下会发布0.8.4,你可以先改了试一试,感谢帮忙debug🙏

还有那个事先生成的缓存文件合并后无法自动删除的问题,麻烦也要修复一下啊。后面0.8.4版本要是没问题的话我就不反馈了,说明我没有发现问题,后面要是有其他问题我再反馈哈。

from bilix.

HFrost0 avatar HFrost0 commented on May 12, 2024

哈哈,你这个对齐错了,应该是52行那个。

你那个是因为你缩进错位置了,出了for循环,导致只删掉了最后一个。0.8.4已上传,再次感谢帮忙找bug🥹

from bilix.

Chengxcy avatar Chengxcy commented on May 12, 2024

哈哈,你这个对齐错了,应该是52行那个。

你那个是因为你缩进错位置了,出了for循环,导致只删掉了最后一个

哦哦,好的,我不是计算机专业的,业务爱好者。刚才0.8.4新版本测试了,目前完美,可以正常使用了

from bilix.

HFrost0 avatar HFrost0 commented on May 12, 2024

没关系,开源项目本来就大家一起找问题解决问题的

from bilix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.