Skip to content

Instantly share code, notes, and snippets.

@pcanterini

pcanterini/track

Last active Oct 19, 2016
Embed
What would you like to do?
Example of track with bad embed_code data
{
"updated_at": "2016-10-19T20:16:55Z",
"type": "ts",
"tracks": [{
"url_hash": "fc88ab7623ceb58a7ee77a7ea2f077462ab39d725645881e02a4308566d52719",
"url": "http://bleacherreport.com/articles/2670568-2016-17-nba-season-preview-predicting-who-will-be-this-years-breakout-star",
"updated_at": "2016-10-19T15:42:01Z",
"tag": {
"unique_name": "nba",
"tag_id": 19,
"short_name": "NBA",
"logo": "nba.png",
"display_name": "NBA",
"color2": "",
"color1": ""
},
"status": "active",
"position": null,
"playlist_type": "ts",
"playlist_id": 42168,
"permalink": "/articles/track/11440138-predicting-who-will-be-this-years-breakout-stars",
"performed_by": "jshepard@bleacherreport.com",
"original_url_hash": 34701033,
"notification": null,
"is_locked": false,
"is_featured": false,
"internal_position": "2233.1601943971",
"id": 11440138,
"href": "http://djay.bleacherreport.com/playlists/nba_ts/tracks/11440138",
"hide_from_regions": [],
"hidden_attributes": [],
"group_tags": [],
"expires_at": null,
"created_at": "2016-10-19T15:41:55Z",
"content_type": "video_article",
"content": {
"title": "Predicting This Year's Breakout Stars",
"thumbnail_url": "http://img.bleacherreport.net/img/images/photos/003/633/488/hi-res-be19613860c5e75b30eaf121a59d1bb6_crop_exact.jpg?w=900&h=600&q=75",
"metadata": {
"video_url": "http://vid.bleacherreport.com/videos/13345/akamai.json",
"video_id": null,
"title": "2016-17 NBA Season Preview: Predicting Who Will Be This Year's Breakout Stars",
"thumbnail_url": "http://img.bleacherreport.net/img/images/photos/003/633/488/hi-res-be19613860c5e75b30eaf121a59d1bb6_crop_exact.jpg?w=900&h=600&q=75",
"provider_url": "http://bleacherreport.com",
"provider_name": "vid.bleacherreport.com",
"mp4_url": null,
"hls_url": null,
"embed_code": "<div id=\"video-13345\" class=\"video-player\" data-id=\"13345\" data-library=\"video-cms\" data-provider=\"akamai\"></div><script>!function(d, s, id, url, en) { if(d.getElementById(id)) { if(d.createEvent) { var e = d.createEvent('Events'); e.initEvent(en, true, true); d.dispatchEvent(e); } else { d.documentElement[en] = 'true'; } } else { var js = d.createElement(s), fjs = d.getElementsByTagName(s)[0]; js.id = id; js.src = url; if(d.createEvent) { js.onload = function() { var e = d.createEvent('Events'); e.initEvent(en, true, true); d.dispatchEvent(e); }; } else { js.onreadystatechange = function() { if(js.readyState === 'loaded') { d.documentElement[en] = 'true'; } }; } fjs.parentNode.insertBefore(js, fjs); }}(document, 'script', 'akamai-video-javascript', 'http://cdn.bleacherreport.net/amp.premier/bleacher/2/amp.premier.min.js', 'AkamaiVideoJavaScriptLoaded');</script>",
"duration": 174,
"description": null,
"author_name": "Team Stream Now",
"article_type": "uber_article"
},
"media_width": null,
"media_url": null,
"media_id": null,
"media_height": null,
"hook_type": "photo",
"autoplay": false
}
}],
"tags": {
"unique_name": "nba",
"tag_id": 19,
"short_name": "NBA",
"logo": "nba.png",
"display_name": "NBA",
"color2": "",
"color1": ""
},
"published_at": "2016-04-22T05:23:10Z",
"metadata_type": "permanent",
"live_update": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.