From 5937d8dc46bea42ef70c0361d8e4c760f40c1878 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 30 Oct 2022 18:38:39 +0300 Subject: [PATCH] Create __data__/ --- sites/tvguide.com/__data__/content.json | 159 +++++++++++++++++++++ sites/tvguide.com/__data__/no-content.json | 20 +++ sites/tvguide.com/__data__/program.json | 91 ++++++++++++ 3 files changed, 270 insertions(+) create mode 100644 sites/tvguide.com/__data__/content.json create mode 100644 sites/tvguide.com/__data__/no-content.json create mode 100644 sites/tvguide.com/__data__/program.json diff --git a/sites/tvguide.com/__data__/content.json b/sites/tvguide.com/__data__/content.json new file mode 100644 index 00000000..d0ad4a3e --- /dev/null +++ b/sites/tvguide.com/__data__/content.json @@ -0,0 +1,159 @@ +{ + "data": { + "duration": "1440", + "providerId": "9100001138", + "startTime": "1667088000", + "items": [ + { + "channel": { + "fullName": "CBS", + "name": "CBS", + "number": null, + "sourceId": 9200018514, + "legacySourceId": 5943, + "networkName": "CBS", + "networkId": 1, + "logo": "/provider/1/4/1-685389140.png" + }, + "programSchedules": [ + { + "airingAttrib": 524817, + "catId": 2, + "startTime": 1667088000, + "endTime": 1667097000, + "programId": 6060455538, + "title": "NWSL Soccer Playoff", + "rating": null, + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6060455538/web" + }, + { + "airingAttrib": 558098, + "catId": 5, + "startTime": 1667097000, + "endTime": 1667098800, + "programId": 6060248599, + "title": "Young Sheldon", + "rating": "TV-PG", + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6060248599/web" + }, + { + "airingAttrib": 524288, + "catId": 5, + "startTime": 1667098800, + "endTime": 1667102400, + "programId": 1030182907, + "title": "Local Programming", + "rating": "TV-G", + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/1030182907/web" + }, + { + "airingAttrib": 524288, + "catId": 5, + "startTime": 1667102400, + "endTime": 1667120400, + "programId": 1030182907, + "title": "Local Programming", + "rating": "TV-G", + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/1030182907/web" + }, + { + "airingAttrib": 524288, + "catId": 5, + "startTime": 1667120400, + "endTime": 1667134800, + "programId": 1030182907, + "title": "Local Programming", + "rating": "TV-G", + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/1030182907/web" + }, + { + "airingAttrib": 557588, + "catId": 4, + "startTime": 1667134800, + "endTime": 1667140200, + "programId": 6060613824, + "title": "CBS Sunday Morning", + "rating": "TV-PG", + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6060613824/web" + }, + { + "airingAttrib": 557588, + "catId": 4, + "startTime": 1667140200, + "endTime": 1667143800, + "programId": 6060613861, + "title": "Face the Nation", + "rating": "TV-PG", + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6060613861/web" + }, + { + "airingAttrib": 524288, + "catId": 5, + "startTime": 1667143800, + "endTime": 1667145600, + "programId": 1030182907, + "title": "Local Programming", + "rating": "TV-G", + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/1030182907/web" + }, + { + "airingAttrib": 558097, + "catId": 2, + "startTime": 1667145600, + "endTime": 1667149200, + "programId": 6003572942, + "title": "The NFL Today", + "rating": null, + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6003572942/web" + }, + { + "airingAttrib": 524817, + "catId": 2, + "startTime": 1667149200, + "endTime": 1667160000, + "programId": 6000129053, + "title": "NFL Football", + "rating": null, + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6000129053/web" + }, + { + "airingAttrib": 524817, + "catId": 2, + "startTime": 1667160000, + "endTime": 1667170800, + "programId": 6000129053, + "title": "NFL Football", + "rating": null, + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6000129053/web" + }, + { + "airingAttrib": 558100, + "catId": 4, + "startTime": 1667170800, + "endTime": 1667174400, + "programId": 6003572892, + "title": "60 Minutes", + "rating": "TV-PG", + "programDetails": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6003572892/web" + } + ] + } + ] + }, + "links": { + "self": { + "href": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/9100001138/web?start=1667088000&duration=1440&channelSourceIds=9200018514" + }, + "prev": { + "href": null + }, + "next": { + "href": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/9100001138/web?start=1667088000&duration=1440&channelSourceIds=9200018514&offset=1667089440&limit=1667088000" + } + }, + "meta": { + "componentName": null, + "componentDisplayName": null, + "componentType": null + } +} \ No newline at end of file diff --git a/sites/tvguide.com/__data__/no-content.json b/sites/tvguide.com/__data__/no-content.json new file mode 100644 index 00000000..d67154ca --- /dev/null +++ b/sites/tvguide.com/__data__/no-content.json @@ -0,0 +1,20 @@ +{ + "errors": [ + { + "code": 400, + "reason": "Not Found", + "message": "Bad Request" + } + ], + "links": { + "self": { + "href": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/100001138/web?start=1667088000&duration=1440&channelSourceIds=9200018514" + } + }, + "meta": { + "componentName": null, + "componentDisplayName": null, + "componentType": null + } +} + \ No newline at end of file diff --git a/sites/tvguide.com/__data__/program.json b/sites/tvguide.com/__data__/program.json new file mode 100644 index 00000000..e0697a72 --- /dev/null +++ b/sites/tvguide.com/__data__/program.json @@ -0,0 +1,91 @@ +{ + "data": { + "item": { + "id": 6060613824, + "name": "CBS Sunday Morning", + "parentId": 1030037352, + "description": "The Backseat Lovers perform on the \"Saturday Sessions\"; and Daisy Ryan guests on \"The Dish.\" Also: comedian Fortune Feimster.", + "isSportsEvent": false, + "rating": null, + "tvRating": "TV-PG", + "episodeTitle": "10-30-2022", + "releaseYear": 2022, + "seoUrl": null, + "categoryId": 4, + "subCategoryId": 0, + "episodeAirDate": "/Date(1667088000000)/", + "episodeNumber": 248, + "seasonNumber": 40, + "mcoId": 1030037352, + "title": "CBS Sunday Morning", + "type": "show", + "slug": "cbs-sunday-morning", + "typeId": 1, + "images": [ + { + "id": "1-10744155154", + "provider": "Tivo", + "imageType": { + "typeId": 1, + "typeName": "showcard", + "providerTypeName": "Vertical Showcard (3:4)" + }, + "bucketType": "catalog", + "bucketPath": "/provider/1/1/1-10744155154.jpg", + "filename": "", + "width": 2160, + "height": 2880 + }, + { + "id": "1-10744155148", + "provider": "Tivo", + "imageType": { + "typeId": 5, + "typeName": "key art", + "providerTypeName": "Key Art" + }, + "bucketType": "catalog", + "bucketPath": "/provider/1/5/1-10744155148.jpg", + "filename": "", + "width": 3000, + "height": 1688 + } + ], + "genres": [ + { + "id": 19, + "name": "Talk & Interview", + "genres": [ + "interview", + "talk" + ] + }, + { + "id": 99, + "name": "Other", + "genres": [ + "newsmagazine", + "profile" + ] + } + ], + "duration": null, + "metacriticSummary": { + "url": null, + "score": 0, + "reviewCount": 0 + }, + "video": null + } + }, + "links": { + "self": { + "href": "https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6060613824/web" + } + }, + "meta": { + "componentName": null, + "componentDisplayName": null, + "componentType": null + } +} \ No newline at end of file