Fix print when torrent contain multiple files

This commit is contained in:
Mister Daneel 2019-04-19 19:58:30 +02:00 committed by GitHub
parent a2771299be
commit 3631efc4fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ class process_torrent():
self.info['length'] = 0 self.info['length'] = 0
for file in self.info['files']: for file in self.info['files']:
self.info['length'] += file['length'] self.info['length'] += file['length']
print(pretty_data(self.info['files'])) print(pretty_data(self.info['files']))
def tracker_info_hash(self): def tracker_info_hash(self):
raw_info = self.b_enc.get_dict('info') raw_info = self.b_enc.get_dict('info')