From 4b237df2fe0bd4666a3532c23dc958faa1900d2e Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Wed, 22 May 2019 13:40:51 -0400 Subject: [PATCH] Add back lbry.tv view counts They won't be tracked for pilot program on api side. --- src/ui/component/viewers/videoViewer.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/component/viewers/videoViewer.jsx b/src/ui/component/viewers/videoViewer.jsx index 82da9ec30..8599afdce 100644 --- a/src/ui/component/viewers/videoViewer.jsx +++ b/src/ui/component/viewers/videoViewer.jsx @@ -23,6 +23,10 @@ class AudioVideoViewer extends React.PureComponent { componentDidMount() { const { contentType, poster, claim } = this.props; 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 sources = [ -- 2.45.3