Make My Files page get media type via content_type instead of filename
This commit is contained in:
parent
bc129eb347
commit
3deb160822
1 changed files with 3 additions and 1 deletions
|
@ -195,7 +195,9 @@ var MyFilesPage = React.createClass({
|
|||
}
|
||||
|
||||
var ratioLoaded = written_bytes / total_bytes;
|
||||
var showWatchButton = (lbry.getMediaType(file_name) == 'video' || lbry.getMediaType(file_name) == 'audio');
|
||||
|
||||
var mediaType = lbry.getMediaType(metadata.content_type, file_name);
|
||||
var showWatchButton = (mediaType == 'video');
|
||||
|
||||
content.push(<MyFilesRow key={lbry_uri} lbryUri={lbry_uri} title={title || ('lbry://' + lbry_uri)} completed={completed} stopped={stopped}
|
||||
ratioLoaded={ratioLoaded} imgUrl={thumbnail} path={download_path}
|
||||
|
|
Loading…
Reference in a new issue