Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rleibovitz89/471d8af219c941dce7c6a3e4a5334d09 to your computer and use it in GitHub Desktop.
Save rleibovitz89/471d8af219c941dce7c6a3e4a5334d09 to your computer and use it in GitHub Desktop.
[ROKU] Implement End of Video card for a Collection made up of Movies
[
{
"item_type": "Episode",
"metadata": {},
"item": {
"url": "/videos/watch/batman-returns/4490a233-bb1e-4c4a-a5f5-53d37e7c523d",
"video_uuid": "6a42dea6-ba14-41b0-9196-024311b16500",
"season_uuid": "23eabc9f-47b8-11e8-9a0f-12415ab58e48",
"playable_on": null,
"season": 1,
"series_uuid": "24436b7d-47b8-11e8-9a0f-12415ab58e48",
"season_title": null,
"series_type": "feature film",
"season_asset_url": "https://imgix-media-qa.wbdndc.net/asset/season/10/5c00423c",
"title": "Batman Returns",
"season_id": 10,
"playback_duration": 172800,
"release_date": "2020-04-01T04:01:43",
"available_plans": [
{
"name": "basic"
},
{
"name": "preorder"
},
{
"name": "advanced"
}
],
"air_date": "1992-06-19",
"badge": "",
"uuid": "4490a233-bb1e-4c4a-a5f5-53d37e7c523d",
"subfile": "",
"series_id": 7,
"number": 1,
"season_asset_key": "5c00423c",
"metadata": {
"country-of-origin": "US",
"distributor": "Warner Bros. Animation",
"distributor-content-id": "10.5240/708F-117F-541A-0DCE-9E59-C",
"distributorid-id": "60212",
"EIDR": "10.5240/CDA3-6A33-E7D0-ED42-1509-Q",
"genres": "Adventure,Fantasy",
"MPM": "2003065",
"participants-actor": "Michelle Pfeiffer,Michael Murphy,Pat Hingle,Christopher Walken,Danny DeVito,Michael Keaton,Michael Gough",
"participants-director": "",
"participants-executive-producer": "",
"participants-producer": "",
"participants-voice": "",
"participants-writer": "",
"production-number": null,
"related_comic": "T0037605485001",
"release-year": "1992",
"video-badge": "HD,5.1",
"x-timeline-credits-end": "1899-12-30T07:06:28-00:00",
"x-timeline-credits-start": "1899-12-30T07:00:52-00:00"
},
"is_approved": true,
"season_position": 1,
"guid": "7.1",
"series_title": "Batman Returns",
"ad_markers": "",
"timestamps": [
{
"end_seconds": 7588,
"end": "2:06:28",
"start_seconds": 7252,
"end_float": 7588.0,
"start": "2:00:52",
"start_float": 7252.0,
"label": "credits"
}
],
"thumbnail": "https://dc-qa-www.drama9.com/st/img/epth/7_1.jpg",
"series_asset_key": "5e3b0771",
"description": "In the second of the blockbuster Batman films, the physically deformed criminal genius The Penguin threatens Gotham City--and, helpless, the entire city can only pray that Batman Returns.",
"id": 93,
"rental_duration": 2592000,
"has_download_files": true,
"program_schedule": [
{
"name": "Default Premium Paywall",
"type": [
"premium"
],
"plan": [],
"start_time": null,
"end_time": null
}
],
"video": {
"requires_premium_code": null,
"status": "provisioned",
"wall_expires": null,
"wall_restriction": "paywall",
"wall_type": 0
},
"asset_key": "597f3c3c",
"mpaa_rating": "PG-13",
"tv_rating": "",
"preview_available_on": null,
"base_asset_url": "https://imgix-media-qa.wbdndc.net/asset/episode/93/597f3c3c",
"duration": "02:06:21"
}
},
{
"item_type": "Episode",
"metadata": {},
"item": {
"url": "/videos/watch/batman-the-dark-knight-returns-part-1/c01d55e6-95a2-4ee4-902b-9a924acc1431",
"video_uuid": "96a41a3a-3cda-4dbf-8ca4-e664a3f63530",
"season_uuid": "23eac462-47b8-11e8-9a0f-12415ab58e48",
"playable_on": null,
"season": 1,
"series_uuid": "2443787c-47b8-11e8-9a0f-12415ab58e48",
"season_title": null,
"series_type": "feature film",
"season_asset_url": "https://imgix-media-qa.wbdndc.net/asset/season/20/5ca26d19",
"title": "Batman: The Dark Knight Returns Part 1",
"season_id": 20,
"playback_duration": 172800,
"release_date": "2017-06-21T19:22:12",
"available_plans": [
{
"name": "basic"
},
{
"name": "preorder"
},
{
"name": "advanced"
}
],
"air_date": "2012-09-25",
"badge": "",
"uuid": "c01d55e6-95a2-4ee4-902b-9a924acc1431",
"subfile": "",
"series_id": 15,
"number": 1,
"season_asset_key": "5ca26d19",
"metadata": {
"country-of-origin": "US",
"distributor": "Warner Bros. Animation",
"distributor-content-id": "10.5240/BE64-B06F-0063-9BD7-78A6-L",
"distributorid-id": "60212",
"EIDR": "10.5240/578C-C4C1-2F9D-5728-C58F-5",
"genres": "Adventure,Animated,Crime",
"MPM": "2054669",
"participants-actor": "David Selby,Peter Weller,Wade Williams,Ariel Winter",
"participants-director": "",
"participants-executive-producer": "",
"participants-producer": "",
"participants-voice": "",
"participants-writer": "",
"production-number": null,
"related_comic": "T0997800015001",
"release-year": "2012",
"video-badge": "HD,5.1",
"x-timeline-credits-end": "1899-12-30T06:16:10-00:00",
"x-timeline-credits-start": "1899-12-30T06:13:06-00:00"
},
"is_approved": true,
"season_position": 1,
"guid": "15.1",
"series_title": "Batman: The Dark Knight Returns Part 1",
"ad_markers": "",
"timestamps": [
{
"end_seconds": 4570,
"end": "1:16:10",
"start_seconds": 4386,
"end_float": 4570.0,
"start": "1:13:06",
"start_float": 4386.0,
"label": "credits"
}
],
"thumbnail": "https://dc-qa-www.drama9.com/st/img/epth/15_1.jpg",
"series_asset_key": "5e3b077c",
"description": "Based on Frank Miller's acclaimed graphic novel, this intense and visually inventive two-part animated film tells the story of an alternate future for Batman.",
"id": 165,
"rental_duration": 2592000,
"has_download_files": true,
"program_schedule": [
{
"name": "Default Premium Paywall",
"type": [
"premium"
],
"plan": [],
"start_time": null,
"end_time": null
}
],
"video": {
"requires_premium_code": null,
"status": "provisioned",
"wall_expires": null,
"wall_restriction": "paywall",
"wall_type": 0
},
"asset_key": "597f3be4",
"mpaa_rating": "PG-13",
"tv_rating": "",
"preview_available_on": null,
"base_asset_url": "https://imgix-media-qa.wbdndc.net/asset/episode/165/597f3be4",
"duration": "01:16:11"
}
},
{
"item_type": "Episode",
"metadata": {},
"item": {
"url": "/videos/watch/batman-the-dark-knight-returns-part-2/c9a78afd-6f04-4e02-8cd8-1414704bf5e2",
"video_uuid": "2aad58e1-b8ee-42ce-b6a3-08353d169f8e",
"season_uuid": "23eaca4c-47b8-11e8-9a0f-12415ab58e48",
"playable_on": null,
"season": 1,
"series_uuid": "24437b84-47b8-11e8-9a0f-12415ab58e48",
"season_title": null,
"series_type": "feature film",
"season_asset_url": "https://imgix-media-qa.wbdndc.net/asset/season/21/5ca26d18",
"title": "Batman: The Dark Knight Returns Part 2",
"season_id": 21,
"playback_duration": 172800,
"release_date": "2017-09-05T20:58:00",
"available_plans": [
{
"name": "basic"
},
{
"name": "preorder"
},
{
"name": "advanced"
}
],
"air_date": "2013-01-29",
"badge": "",
"uuid": "c9a78afd-6f04-4e02-8cd8-1414704bf5e2",
"subfile": "",
"series_id": 16,
"number": 1,
"season_asset_key": "5ca26d18",
"metadata": {
"country-of-origin": "US",
"distributor": "Warner Bros. Animation",
"distributor-content-id": "10.5240/7264-E97C-7953-19B3-9DE7-Y",
"distributorid-id": "60212",
"EIDR": "10.5240/2649-A1BC-2DC5-5A22-337C-E",
"genres": "Crime,Animated,Adventure",
"MPM": "2054670",
"participants-actor": "David Selby,Peter Weller,Ariel Winter",
"participants-director": "",
"participants-executive-producer": "",
"participants-producer": "",
"participants-voice": "",
"participants-writer": "",
"production-number": null,
"related_comic": "T0997800025001",
"release-year": "2012",
"video-badge": "HD,5.1",
"x-timeline-credits-end": "1899-12-30T06:15:41-00:00",
"x-timeline-credits-start": "1899-12-30T06:12:35-00:00"
},
"is_approved": true,
"season_position": 1,
"guid": "16.1",
"series_title": "Batman: The Dark Knight Returns Part 2",
"ad_markers": "",
"timestamps": [
{
"end_seconds": 4541,
"end": "1:15:41",
"start_seconds": 4355,
"end_float": 4541.0,
"start": "1:12:35",
"start_float": 4355.0,
"label": "credits"
}
],
"thumbnail": "https://dc-qa-www.drama9.com/st/img/epth/16_1.jpg",
"series_asset_key": "5e3b077d",
"description": "Although the aging Dark Knight has returned to crime fighting, Gotham City and the rest of America no longer want his brand of vigilantism.",
"id": 166,
"rental_duration": 2592000,
"has_download_files": true,
"program_schedule": [
{
"name": "Default Premium Paywall",
"type": [
"premium"
],
"plan": [],
"start_time": null,
"end_time": null
}
],
"video": {
"requires_premium_code": null,
"status": "provisioned",
"wall_expires": null,
"wall_restriction": "paywall",
"wall_type": 0
},
"asset_key": "597f3b9c",
"mpaa_rating": "PG-13",
"tv_rating": "",
"preview_available_on": null,
"base_asset_url": "https://imgix-media-qa.wbdndc.net/asset/episode/166/597f3b9c",
"duration": "01:15:42"
}
},
{
"item_type": "Episode",
"metadata": {},
"item": {
"url": "/videos/watch/batman-hush/616bef9c-3b64-486d-81fc-fe6d244a7452",
"video_uuid": "25a73991-bd95-4527-b94c-99b2c30e357d",
"season_uuid": "fbda9d0b-6b36-42e3-93d1-c34beb021112",
"playable_on": "2019-08-13T04:00:00+00:00",
"season": 1,
"series_uuid": "dfa95ce9-ef9b-479c-ae0e-f2c42888b4bd",
"season_title": null,
"series_type": "feature film",
"season_asset_url": "https://imgix-media-qa.wbdndc.net/asset/season/272/5d548161",
"title": "Batman: Hush",
"season_id": 272,
"playback_duration": 172800,
"release_date": "2019-07-17T17:41:02",
"available_plans": [
{
"name": "basic"
},
{
"name": "preorder"
},
{
"name": "advanced"
}
],
"air_date": "2019-08-13",
"badge": "",
"uuid": "616bef9c-3b64-486d-81fc-fe6d244a7452",
"subfile": "",
"series_id": 186,
"number": 1,
"season_asset_key": "5d548161",
"metadata": {
"MPM": "2077984",
"related_comic": "T0930906080101",
"video-badge": "4K ULTRA HD,HDR,HD,5.1"
},
"is_approved": true,
"season_position": 1,
"guid": "186.1",
"series_title": "Batman: Hush",
"ad_markers": "",
"timestamps": [
{
"end_seconds": 4920,
"end": "1:22:00.660000",
"start_seconds": 4734,
"end_float": 4920.66,
"start": "1:18:54.380000",
"start_float": 4734.38,
"label": "credits"
}
],
"thumbnail": "https://dc-qa-www.drama9.com/st/img/epth/186_1.jpg",
"series_asset_key": "5e3b077a",
"description": "Batman: Hush centers on a shadowy new villain known only as Hush, who uses Gotham’s Rogues Gallery to destroy Batman’s crime-fighting career, as well as Bruce Wayne’s personal life.",
"id": 2879,
"rental_duration": 2592000,
"has_download_files": true,
"program_schedule": [
{
"name": "Default Premium Paywall",
"type": [
"premium"
],
"plan": [],
"start_time": null,
"end_time": null
}
],
"video": {
"requires_premium_code": null,
"status": "provisioned",
"wall_expires": null,
"wall_restriction": "paywall",
"wall_type": 0
},
"asset_key": "5d1280e1",
"mpaa_rating": "PG-13",
"tv_rating": "",
"preview_available_on": "2019-08-13T03:00:00+00:00",
"base_asset_url": "https://imgix-media-qa.wbdndc.net/asset/episode/2879/5d1280e1",
"duration": "01:22:01"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment