kz26 / dottorrent Goto Github PK
View Code? Open in Web Editor NEWHigh-level Python 3 library for creating .torrent files
Home Page: https://dottorrent.readthedocs.io
License: MIT License
High-level Python 3 library for creating .torrent files
Home Page: https://dottorrent.readthedocs.io
License: MIT License
I would like to use dottorrent as a module, but I don't want my project to depend on tqdm and humanfriendly which are only used by dottorrent's CLI. Is there any chance you would consider making a new dottorrent-cli project like dottorrent-gui?
Another thing I'm missing is a documented way to access the data dictionary. This is currently possible with a private _data
variable, but a property with a docstring would be nicer.
Finally, I need a torrent file parser that provides all information in a pythonic way. I could implement this in my project, but I think it would be a useful feature in general.
I would make pull requests for the data
property and a TorrentInfo
class. What do you think?
qBittorrent 5.0 will support handling/creating up to 256 MB .torrent files.
It would be good to keep up with this very popular client but also making .torrent files of this size.
Feature to exclude any filename pattern like .jpg;.png and such. It'd be very handy in batch creating torrents for cross seeding on trackers!
M:\path\Transcodes>"C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\python.exe" "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\Scripts\dottorrent_cli" --tracker http://tracker/announce --private "M:\path\Transcodes\Müzik" "M:\path\Transcodes\Müzik.torrent"
dottorrent/1.5.0 (https://github.com/kz26/dottorrent)
Input: M:\path\Transcodes\Teoman [2016] Iki Ask [Avrupa Müzik Yapim, WEB] [V2
]
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\Scripts
\dottorrent_cli", line 85, in
t_info = t.get_info()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\sit
e-packages\dottorrent_init_.py", line 155, in get_info
raise exceptions.EmptyInputException
dottorrent.exceptions.EmptyInputException: Input path must be non-empty
Probably a duplicate of #3.
I've confirmed this only happens when the ä character is in the filename:
Traceback (most recent call last):
File "/path/to/.local/bin/dottorrent", line 8, in <module>
sys.exit(main())
File "/path/to/.local/lib/python3.5/site-packages/dtcli/cli.py", line 137, in main
t.generate(callback=progress_callback)
File "/path/to/.local/lib/python3.5/site-packages/dottorrent/__init__.py", line 301, in generate
for y in x[0].split(os.sep)[len(path_sp):]]
File "/path/to/.local/lib/python3.5/site-packages/dottorrent/__init__.py", line 301, in <listcomp>
for y in x[0].split(os.sep)[len(path_sp):]]
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc3' in position 11: surrogates not allowed
Currently, there is no way to exclude unwanted folders when creating a torrent, while it's possible to exclude unwanted files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.