diff --git a/ui/js/page/watch.js b/ui/js/page/watch.js
index 5332df5ff..164745e10 100644
--- a/ui/js/page/watch.js
+++ b/ui/js/page/watch.js
@@ -20,7 +20,7 @@ export let WatchLink = React.createClass({
getInitialState: function() {
affirmedPurchase: false
},
- onAffirmPurchase: function() {
+ play: function() {
lbry.get({uri: this.props.uri}).then((streamInfo) => {
if (streamInfo === null || typeof streamInfo !== 'object') {
this.setState({
@@ -51,10 +51,16 @@ export let WatchLink = React.createClass({
attemptingDownload: false,
});
} else if (cost <= 0.01) {
- this.onAffirmPurchase()
+ this.play()
} else {
- this.setState({
- modal: 'affirmPurchase'
+ lbry.file_list({outpoint: this.props.outpoint}).then((fileInfo) => {
+ if (fileInfo) { // Already downloaded
+ this.play();
+ } else {
+ this.setState({
+ modal: 'affirmPurchase'
+ });
+ }
});
}
});
@@ -84,7 +90,7 @@ export let WatchLink = React.createClass({
You don't have enough LBRY credits to pay for this stream.
{this.state.loadStatusMessage} :
: