]>
git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - www/pages/torrent/client/torrentlistparse.py
1 # Written by John Hoffman
2 # see LICENSE.txt for license information
4 from binascii
import unhexlify
13 # parses a list of torrent hashes, in the format of one hash per line in hex format
15 def parsetorrentlist(filename
, parsed
):
19 f
= open(filename
, 'r')
27 raise ValueError, 'bad line'
30 print '*** WARNING *** could not parse line in torrent list: '+l
37 return (new_parsed
, added
, removed
)