third time's the charm

This commit is contained in:
Jack 2016-05-30 03:14:59 -04:00
parent 2c3b625b6b
commit da68bcf952

View file

@ -1219,7 +1219,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
d.addCallback(_get_file_status) d.addCallback(_get_file_status)
d.addCallback(lambda message: {'completed': f.completed, 'file_name': f.file_name, d.addCallback(lambda message: {'completed': f.completed, 'file_name': f.file_name,
'download_directory': f.download_directory, 'download_directory': f.download_directory,
'path': os.path.join(f.download_directory, f.file_name), 'download_path': os.path.join(f.download_directory, f.file_name),
'key': key, 'key': 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,
@ -1233,7 +1233,7 @@ class LBRYDaemon(jsonrpc.JSONRPC):
else: else:
d = defer.succeed({'completed': f.completed, 'file_name': f.file_name, 'key': key, d = defer.succeed({'completed': f.completed, 'file_name': f.file_name, 'key': key,
'download_directory': f.download_directory, 'download_directory': f.download_directory,
'path': os.path.join(f.download_directory, f.file_name), 'download_path': os.path.join(f.download_directory, f.file_name),
'points_paid': f.points_paid, 'stopped': f.stopped, 'stream_hash': f.stream_hash, 'points_paid': f.points_paid, 'stopped': f.stopped, '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, 'sd_hash': f.sd_hash, 'total_bytes': size, 'upload_allowed': f.upload_allowed, 'sd_hash': f.sd_hash, 'total_bytes': size,