Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to parse .torrent on Windows #4

Open
techtonik opened this issue Dec 11, 2015 · 0 comments
Open

Fails to parse .torrent on Windows #4

techtonik opened this issue Dec 11, 2015 · 0 comments

Comments

@techtonik
Copy link

> python -m drench gimp-2.8.16-setup.exe.torrent 
Traceback (most recent call last):
  File "C:\Python27\Lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\Lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "E:\.v\lib\site-packages\drench\__main__.py", line 3, in <module>
    main()
  File "E:\.v\lib\site-packages\drench\drench.py", line 320, in main
    download_all=download_all, visualizer=visualizer)
  File "E:\.v\lib\site-packages\drench\drench.py", line 76, in __init__
    torrent_dict = tparser.bdecode_file(torrent_path)
  File "E:\.v\lib\site-packages\drench\tparser.py", line 128, in bdecode_file
    return bdecode(f.read())
  File "E:\.v\lib\site-packages\drench\tparser.py", line 119, in bdecode
    dict_repr = get_val()
  File "E:\.v\lib\site-packages\drench\tparser.py", line 66, in get_val
    return get_dict()
  File "E:\.v\lib\site-packages\drench\tparser.py", line 92, in get_dict
    val = get_val()
  File "E:\.v\lib\site-packages\drench\tparser.py", line 66, in get_val
    return get_dict()
  File "E:\.v\lib\site-packages\drench\tparser.py", line 92, in get_dict
    val = get_val()
  File "E:\.v\lib\site-packages\drench\tparser.py", line 64, in get_val
    return get_str(str_len)
  File "E:\.v\lib\site-packages\drench\tparser.py", line 107, in get_str
    this_str += reader.next()
StopIteration
techtonik added a commit to techtonik/drench that referenced this issue Dec 11, 2015
Windows converts all LF into CRLF if file is read as text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant