Fix unavailable content

temp workaround until a better solution is in place.
This commit is contained in:
Thomas Zarebczan 2019-03-19 01:55:20 -04:00 committed by GitHub
parent 2b05ddb962
commit 2f2f37199c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -287,8 +287,17 @@ class MediaPlayer extends React.PureComponent<Props, State> {
}
showLoadingScreen(isFileType: boolean, isPlayableType: boolean) {
const { mediaType, contentType } = this.props;
const { claim, mediaType, contentType } = this.props;
const { unplayable, fileSource, hasMetadata } = this.state;
if (claim && claim.value.stream.metadata.fee && claim.value.stream.metadata.fee.amount > 0) {
return {
isLoading: false,
loadingStatus: __(
'Currently, only free content is available on lbry.tv. Try viewing it in the desktop app.'
),
};
}
if (['audio', 'video'].indexOf(mediaType) === -1) {
return {