Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
Read MetaInfo from a torrent file

src/b/i/BitTornado-HEAD/bt-t-make.py   BitTornado(Download)
    def _announcecopy(self, f):
        try:
            metainfo = MetaInfo.read(f)
            self.announce = metainfo['announce']
            self.announce_list = metainfo.get('announce-list')
    def _announcecopy(self, f, external=False):
        try:
            metainfo = MetaInfo.read(f)
            self.annCtl.SetValue(metainfo['announce'])
            if 'announce-list' in metainfo:

src/b/i/BitTornado-HEAD/btshowmetainfo.py   BitTornado(Download)
 
for metainfo_name in sys.argv[1:]:
    metainfo = MetaInfo.read(metainfo_name)
    info = metainfo['info']
    info_hash = hashlib.sha1(bencode(info))

src/b/i/BitTornado-HEAD/btsethttpseeds.py   BitTornado(Download)
 
    for fname in args[1:]:
        metainfo = MetaInfo.read(fname)
 
        if 'httpseeds' in metainfo:

src/b/i/BitTornado-HEAD/btrename.py   BitTornado(Download)
def rename(fname, newname, verbose=False):
    metainfo = MetaInfo.read(fname)
 
    if verbose:
        print "%s: %s -> %s" % (fname, metainfo['info']['name'], newname)

src/b/i/BitTornado-HEAD/btmaketorrentgui.py   BitTornado(Download)
        if dl.ShowModal() == wx.wxID_OK:
            try:
                metainfo = MetaInfo.read(dl.GetPath())
                self.annCtl.SetValue(metainfo['announce'])
                if 'announce-list' in metainfo:

src/b/i/BitTornado-HEAD/btcopyannounce.py   BitTornado(Download)
        return 2
 
    source_metainfo = MetaInfo.read(args[0])
 
    verbose = False