Giter VIP home page Giter VIP logo

cn-mooc-dl's People

Contributors

rhilip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cn-mooc-dl's Issues

提一个bug

如果保存settings.conf时用了gb2312,运行icourse163-dl时会提示:

Traceback (most recent call last):
  File "G:\git\cn-mooc-dl\icourse163-dl.py", line 215, in <module>
    main(course_url)
  File "G:\git\cn-mooc-dl\icourse163-dl.py", line 11, in main
    config = model.config("settings.conf", "icourse163")
  File "G:\git\cn-mooc-dl\model\config.py", line 36, in load_config
    config.read(config_file, encoding="utf-8-sig")
  File "C:\Program Files\Python36\lib\configparser.py", line 697, in read
    self._read(fp, filename)
  File "C:\Program Files\Python36\lib\configparser.py", line 1015, in _read
    for lineno, line in enumerate(fp, start=1):
  File "C:\Program Files\Python36\lib\codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
  File "C:\Program Files\Python36\lib\encodings\utf_8_sig.py", line 69, in _buff
er_decode
    return codecs.utf_8_decode(input, errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 359: invali
d continuation byte

Report a bug

Course url
https://www.icourse163.org/learn/NUDT-1001615004?tid=1001692001

Traceback (most recent call last):
File "icourse163-dl.py", line 215, in
main()
File "icourse163-dl.py", line 133, in main
lesson_name = model.clean_filename(model.raw_unicode_escape(lesson_re.group("lesson_name")))
File "D:\Users\John\Documents\GitHub\cn-mooc-dl\model\download.py", line 59, in raw_unicode_escape
return string.encode('utf-8').decode('unicode_escape').encode('gbk', 'ignore').decode('gbk', 'ignore')
UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 36: \ at end of string

这种情况该怎么处理?

用Aria2下载的,最后剩下一大堆未完成的下载,且报错信息基本类似:

08/07 21:09:35 [ERROR] CUID#25 - Download aborted. URI=http://v.stu.126.net/mooc-video/nos/mp4/2014/10/07/772069_hd.mp4
Exception: [AbstractCommand.cc:403] errorCode=1 URI=http://v.stu.126.net/mooc-video/nos/mp4/2014/10/07/772069_hd.mp4
  -> [RequestGroup.cc:760] errorCode=1 Download aborted.
  -> [DefaultBtProgressInfoFile.cc:300] errorCode=1 total length mismatch. expected: 43591489, actual: 43591457

失败了。不知道为什么

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.