Created
September 14, 2012 01:50
-
-
Save jrwren/3719337 to your computer and use it in GitHub Desktop.
torrent announce urls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| from deluge._libtorrent import lt | |
| for a in sys.argv[1:]: | |
| try: | |
| info = lt.torrent_info(lt.bdecode(open(a).read())) | |
| print("{0} {1}".format(info.name(), ', '.join((ae.url for ae in info.trackers())))) | |
| except RuntimeError as e: | |
| print("could not decode torrent file {0}".format(a)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment