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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def getPieceSizeFromDict(metafileDict):
  return metafileDict['info']['piece length']
        


src/l/o/LocalBitTorrentFileFinder-0.2.2/lbff/BitTorrentMetafile.py   LocalBitTorrentFileFinder(Download)
def getMetafileFromDict( metafileDict ):
  module_logger.debug("Converting metafile dictionary to BitTorrentMetafile object")
  files = PayloadFile.getPayloadFilesFromMetafileDict( metafileDict )
  pieces = PayloadPiece.getPiecesFromMetafileDict( metafileDict, files )
  pieceSize = PayloadPiece.getPieceSizeFromDict(metafileDict)