danfolkes / magnet2torrent Goto Github PK
View Code? Open in Web Editor NEWThis will convert a magnet link into a .torrent file
License: GNU General Public License v3.0
This will convert a magnet link into a .torrent file
License: GNU General Public License v3.0
Hello, This is of course a nice project. But I need the script to save the torrent file with default name from the magnet uri.
Requesting the developers to make a GUI for Magnet2Torrent. Please.
hey guy , i had download you pyton code. it always keep downloading.....but nerve never download any torrent file.
As noted by @parnmatt , 71da071#diff-ee6d3490a40d516d8ec6de809896f74cR140 breaks the program with python3
You should either explicitly define python2 in the #! at the top of the file (please no), or fix the print - seems print() is used elsewhere already
How does it work internally.
How it convinced both Ave what's the format of both
Is it possible to do conversions the other way around (.torrent
-> magnet link)?
If so, how?
The script isn't guaranteed to create a torrent with the same infohash as the original (meaning its a different swarm and doesn't work). Also, gives errors about 'storage_mode' parameter missing. And does not copy trackers from Magnet URI to the torrent file.
Hello, i would like to fork this project and make a good user interface, but first, when i try it, using the command line example that you provide, i get this error:
Traceback (most recent call last):
File "Magnet_To_Torrent2.py", line 144, in <module>
main()
File "Magnet_To_Torrent2.py", line 140, in main
magnet2torrent(magnet, output_name)
File "Magnet_To_Torrent2.py", line 51, in magnet2torrent
handle = lt.add_magnet_uri(ses, magnet, params)
KeyError: 'unknown name in torrent params: paused'
python mag2tor.py "magnet:?xt=urn:btih:49fbd26322960d982da855c54e36df19ad3113b8&dn=ubuntu-12.04-desktop-i386.iso&tr=udp%3A%2F%2Ftracker.openbittorrent.com" ubunut12-04.iso
Downloading Metadata (this may take a while)
Done
Traceback (most recent call last):
File "mag2tor.py", line 113, in
main()
File "mag2tor.py", line 109, in main
magnet2torrent(magnet, output_name)
File "mag2tor.py", line 67, in magnet2torrent
torfile = lt.create_torrent(torinfo)
Boost.Python.ArgumentError: Python argument types in
create_torrent.init(create_torrent, torrent_info)
did not match C++ signature:
init(_object*, libtorrent::file_storage {lvalue} storage, int piece_size=0, int pad_file_limit=-1, int flags=1)
init(_object*, libtorrent::file_storage {lvalue})
I am running magnet2torrent with the following dependencies
I get the following error.
Traceback (most recent call last):
File "/usr/bin/magnet2torrent", line 34, in <module>
import libtorrent as lt
ImportError: /usr/lib/libboost_python.so.1.61.0: undefined symbol: PyClass_Type
This error occurs by updating to the latest version of libtorrent-rasterbar, which in turn needs boost-libs version 1.61.0.
By using the following dependency versions magnet2torrent runs successfully.
I strace the process and find it keep print info like below
futex(0x1c6e41c, FUTEX_WAIT_PRIVATE, 97, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x1c6e3f0, FUTEX_WAKE_PRIVATE, 1) = 0
select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
Do I need more settings or specific environment ? My test server is behind NAT
Traceback (most recent call last):
File "/usr/local/bin/Magnet_To_Torrent2.py", line 29, in
import libtorrent as lt
ImportError: /usr/lib64/python2.7/site-packages/libtorrent.so: undefined symbol: _ZTIN5boost6python15instance_holderE
system is fedora 25 x86_64
I suggest the output file is named 'dn.torrent' (with dn referring to the display name parameter) if no output torrent file name is supplied.
Hi,
add_magnet_uri is deprecated.
I did a fork and made the changes.
hpfn@09611b8
I tried to do a 'pull request', suppose to be simple. But
I do not know how.
regards
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.