-
Notifications
You must be signed in to change notification settings - Fork 72
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
Naming options alters basename of the target #2
Comments
This seems to be an invalid issue to me. The BitTorrent specification (BEP3[1]) specifies that "The name key maps to a UTF-8 encoded string which is the suggested name to save the file (or directory) as. It is purely advisory.", which means that mktorrent's current behavior is correct. |
As it's purely advisory - as you point out - it meas that it can be changed without breaking the standards... at least that's how I read it. |
Hi, sorry for the late reply. toppez is right though. When creating a .torrent file from a directory, the only place the directory name is saved, is in the name field. That is unless you change it, as you do in the example above. As tobbez quoted "The name key maps to a UTF-8 encoded string which is the suggested name to save the file (or directory) as. It is purely advisory." Here "purely advisory" means your client can chose to save the contents of the torrent in any directory it wants, but it is advised to save it in a new directory named after the name key. If you just want to create a .torrent file with a different name, you can use: /Esmil |
Revert "Make announce trackers optional"
Hello there
I have the problem that the -n option alters the basename of the target.
Situation:
mktorrent -n "MyTorrent unzipped" -a "http://tracker.domain.com" -o "/media/torrent_files/" "MyTorrent"
Because I add the "unzipped" to the naming, then the torrent folder contained in the .torrent file will be changed to "MyTorrent unzipped". That means after creating the .torrent file I would have to rename the "MyTorrent" folder, otherwise the data within can't be used.
The mktorrent help states this:
-n : set the name of the torrent,
default is the basename of the target
In my opinion, it should just alter the name displayed in the torrent client to "MyTorrent unzipped" but not the actual folder.
--> I'm currently using v1.0 from sourceforge.
The text was updated successfully, but these errors were encountered: