Remove file handle
This commit is contained in:
parent
7ef9a0f0bf
commit
e2ae1ca866
1 changed files with 7 additions and 8 deletions
|
@ -500,16 +500,15 @@ class LBRYDaemon(xmlrpc.XMLRPC):
|
||||||
r = []
|
r = []
|
||||||
for f in self.lbry_file_manager.lbry_files:
|
for f in self.lbry_file_manager.lbry_files:
|
||||||
if f.key:
|
if f.key:
|
||||||
t = {'completed': f.completed, 'file_handle': f.file_handle, 'file_name': f.file_name,
|
t = {'completed': f.completed, 'file_name': f.file_name, 'key': binascii.b2a_hex(f.key),
|
||||||
'key': binascii.b2a_hex(f.key), 'points_paid': f.points_paid, 'stopped': f.stopped,
|
'points_paid': f.points_paid, 'stopped': f.stopped, 'stream_hash': f.stream_hash,
|
||||||
'stream_hash': f.stream_hash, 'stream_name': f.stream_name, 'suggested_file_name': f.suggested_file_name,
|
'stream_name': f.stream_name, 'suggested_file_name': f.suggested_file_name,
|
||||||
'upload_allowed': f.upload_allowed}
|
'upload_allowed': f.upload_allowed}
|
||||||
|
|
||||||
else:
|
else:
|
||||||
t = {'completed': f.completed, 'file_handle': f.file_handle, 'file_name': f.file_name,
|
t = {'completed': f.completed, 'file_name': f.file_name, 'key': None, 'points_paid': f.points_paid,
|
||||||
'key': None, 'points_paid': f.points_paid, 'stopped': f.stopped,
|
'stopped': f.stopped, 'stream_hash': f.stream_hash, 'stream_name': f.stream_name,
|
||||||
'stream_hash': f.stream_hash, 'stream_name': f.stream_name, 'suggested_file_name': f.suggested_file_name,
|
'suggested_file_name': f.suggested_file_name, 'upload_allowed': f.upload_allowed}
|
||||||
'upload_allowed': f.upload_allowed}
|
|
||||||
|
|
||||||
r.append(json.dumps(t))
|
r.append(json.dumps(t))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue