I’d maybe pass the ball a little more but that’s just me….
\n\n"},"media":{"live":null,"video":{"id":"5409500962001","duration":0,"pre_roll_disabled":false,"image":"https://cdn.barstoolsports.com/wp-content/uploads/2017/04/26/4289043293001_5409522571001_5409500962001-vs.jpg"},"podcast":null,"gallery":null,"fundraiser":null},"sites":{"barstoolsports":true,"barstoolbets":false},"meta":{"active_user_id":"10868","active_user_date":"2017-04-26T13:16:26.000Z"}} const preRollDisabled = false // helpful functions function adsDisabled() { return type === 'live' || preRollDisabled } const player = bc('barstool_bc_player_288a9260-e3ff-4ec2-acd7-fcce31a11123') player.controls(true) player.playsinline(true) player.error = e => { if (e) console.error(e) } player.volume(0.5) player.on('ready', function() { if (adsDisabled()) { player.ima3 = null } else if (isAdBlockEnabled()) { const videoTag = document.getElementById('barstool_bc_player_288a9260-e3ff-4ec2-acd7-fcce31a11123') videoTag.parentNode.removeChild(videoTag) document.getElementById('ad_blocker_message').style.display = 'block' } else { player.ima3.settings.debug = true player.ima3.settings.showVpaidControls = true player.ima3.ima3SdkSettings = { disableCustomPlaybackForIOS10Plus: true } player.ima3.adMacroReplacement = function (url) { const params = !post ? {} : { '{authorName}': post.author.name || '', '{authorId}': post.author.id || '', '{category}': post.category && post.category.name || '', '{tags}': post.tags.join('|'), '{brandName}': post.brand && post.name || '', '{brandId}': post.brand && post.brand.id || '', '{campaign}': post.nsfw ? 'NSFW' : 'default', '{storyUrl}': post.urls && post.urls.canonical, '{videoId}': videoId, '{duration}': parseVideoDuration(post, type), '{destination_url}': post.urls.canonical } for (let i in params) { url = url.split(i).join(encodeURIComponent(params[i])) } return url } } })