Add back lbry.tv view counts (#2505)
They won't be tracked for pilot program on api side.
This commit is contained in:
parent
6532353036
commit
64bf00fc83
1 changed files with 4 additions and 0 deletions
|
@ -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 = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue