From 2834bc01f4884cad4a74e6800a78237fbe14489e Mon Sep 17 00:00:00 2001 From: alexliebowitz Date: Mon, 27 Jun 2016 16:38:08 -0400 Subject: [PATCH] Change My Files to use new standard "title" field --- js/page/my_files.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/page/my_files.js b/js/page/my_files.js index 14bff0c1a..6ac837b60 100644 --- a/js/page/my_files.js +++ b/js/page/my_files.js @@ -146,13 +146,12 @@ var MyFilesPage = React.createClass({ for (let fileInfo of this.state.filesInfo) { let {completed, written_bytes, total_bytes, lbry_uri, file_name, download_path, stopped, metadata} = fileInfo; - let {name, stream_name, thumbnail} = metadata; + let {title, thumbnail} = metadata; - var title = (name || stream_name || ('lbry://' + lbry_uri)); var ratioLoaded = written_bytes / total_bytes; var showWatchButton = (lbry.getMediaType(file_name) == 'video'); - content.push(); } @@ -170,4 +169,4 @@ var MyFilesPage = React.createClass({ ); } -}); \ No newline at end of file +});