Giter VIP home page Giter VIP logo

Comments (3)

vvyoko avatar vvyoko commented on May 23, 2024

IDRecorder.txt被作为只写文件流打开了
意外结束时可能不会更新
可能还得判断下它的大小...

5.1版本只只要读取到了ids就返回ids
这种好像更好不用判断

from tiktokdownloader.

JoeanAmier avatar JoeanAmier commented on May 23, 2024

temp 文件夹为下载文件缓存文件夹,程序结束运行会自动清除该文件夹,如果该文件夹存在,说明程序上次异常退出。

from tiktokdownloader.

vvyoko avatar vvyoko commented on May 23, 2024

理解了,我自己是用其他方法管理IDRecorder.txt的,管理时我删除temp后正常了

正常使用测试了下好像有点问题
检查完成后会自动创建这个文件夹

代码中有注册退出时执行函数
而命令行好像并没有退出方式?
文档中说Ctrl+C结束,但在我这这样做直接报错了

另外恢复时选yes提示 IDRecorder 已恢复最后一次备份的数据,请重新运行程序!
看了下代码它应该是读取了备份文件的数据,但提示让重新运行...

另外一个非常非常小众的BUG
在环境变量中设置了代理为sock5的话,程序会报错Missing dependencies for SOCKS support.
我设置的是 all_proxy,它的功能是全局的命令行代理
类似的还有http_proxyhttps_proxy
windows是支持这样设置,搜索了下linux也支持.

设置自带代理可以考虑手动清空这些环境变量
在cmd中是这样设置的set all_proxy=
我不熟悉python,就不搜索python的代码了

from tiktokdownloader.

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.