Add back lbry.tv view counts (#2505)

They won't be tracked for pilot program on api side.
This commit is contained in:
Thomas Zarebczan 2019-05-22 15:34:56 -04:00 committed by GitHub
parent 6532353036
commit 64bf00fc83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,10 @@ class AudioVideoViewer extends React.PureComponent<Props> {
const { contentType, poster, claim } = this.props; const { contentType, poster, claim } = this.props;
const { name, claim_id: claimId, txid, nout } = claim; const { name, claim_id: claimId, txid, nout } = claim;
// Quick fix to get file view events on lbry.tv
// Will need to be changed to include time to start
analytics.apiLogView(`${name}#${claimId}`, `${txid}:${nout}`, claimId);
const path = `https://api.piratebay.com/content/claims/${claim.name}/${claim.claim_id}/stream.mp4`; const path = `https://api.piratebay.com/content/claims/${claim.name}/${claim.claim_id}/stream.mp4`;
const sources = [ const sources = [
{ {