Skip to content

Commit

Permalink
fixbug: encoding error in meta_worker
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoxia committed May 29, 2015
1 parent ec55b9b commit d27553a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workers/meta_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

threading.stack_size(128000)
socket.setdefaulttimeout(60)
MAX_READ = 20
MAX_READ = 50
DB_HOST = '127.0.0.1'
DB_USER = 'root'
DB_PASS = ''
Expand Down Expand Up @@ -140,7 +140,7 @@ def parse_torrent(self, data):
if torrent.get('comment'):
info['comment'] = self.decode_utf8(torrent, 'comment')
if torrent.get('publisher-url'):
self.encoding = self.decode_utf8(torrent, 'publisher-url')
info['publisher-url'] = self.decode_utf8(torrent, 'publisher-url')
if torrent.get('publisher'):
info['publisher'] = self.decode_utf8(torrent, 'publisher')
if torrent.get('created by'):
Expand Down

0 comments on commit d27553a

Please sign in to comment.