mirror of
https://github.com/iptv-org/epg
synced 2026-05-06 01:17:02 -04:00
Update tvguide.com guide.
Test: ```sh npm test --- tvguide.com > test > run-script-os tvguide.com > test:win32 > SET "TZ=Pacific/Nauru" && npx jest --runInBand tvguide.com PASS sites/tvguide.com/tvguide.com.test.js √ can generate valid url (4 ms) √ can parse response (5 ms) √ can handle empty guide (1 ms) Test Suites: 1 passed, 1 total Tests: 3 passed, 3 total Snapshots: 0 total Time: 0.567 s, estimated 1 s Ran all test suites matching /tvguide.com/i. ``` Grab: ```sh npm run grab --- --site=tvguide.com > grab > npx tsx scripts/commands/epg/grab.ts --site=tvguide.com starting... config: output: guide.xml maxConnections: 1 gzip: false site: tvguide.com loading channels... found 1 channel(s) run #1: [1/2] tvguide.com (es) - UnivisionEast.us - Jan 12, 2025 (33 programs) [2/2] tvguide.com (es) - UnivisionEast.us - Jan 13, 2025 (25 programs) saving to "guide.xml"... done in 00h 00m 05s ``` Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
7
sites/tvguide.com/__data__/content.html
Normal file
7
sites/tvguide.com/__data__/content.html
Normal file
File diff suppressed because one or more lines are too long
@@ -1,159 +0,0 @@
|
||||
{
|
||||
"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://fandom-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://fandom-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://fandom-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://fandom-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://fandom-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://fandom-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://fandom-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://fandom-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://fandom-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://fandom-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://fandom-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://fandom-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6003572892/web"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"links": {
|
||||
"self": {
|
||||
"href": "https://fandom-prod.apigee.net/v1/xapi/tvschedules/tvguide/9100001138/web?start=1667088000&duration=1440&channelSourceIds=9200018514"
|
||||
},
|
||||
"prev": {
|
||||
"href": null
|
||||
},
|
||||
"next": {
|
||||
"href": "https://fandom-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
|
||||
}
|
||||
}
|
||||
1
sites/tvguide.com/__data__/content1.json
Normal file
1
sites/tvguide.com/__data__/content1.json
Normal file
@@ -0,0 +1 @@
|
||||
{"data":{"duration":"240","providerId":"9100001138","startTime":"1736640000","items":[{"channel":{"fullName":"CBS National Schedule","name":"CBS","number":null,"sourceId":9200018514,"legacySourceId":null,"networkName":"CBS","networkId":1,"logo":"/provider/8/4/8-9200018514.png"},"programSchedules":[{"airingAttrib":524304,"catId":5,"startTime":1736643600,"endTime":1736647200,"programId":9000351140,"title":"FBI: International","rating":null,"programDetails":"https://backend.tvguide.com/tvschedules/tvguide/programdetails/9000351140/web"},{"airingAttrib":524304,"catId":5,"startTime":1736647200,"endTime":1736650800,"programId":9000317198,"title":"FBI: Most Wanted","rating":null,"programDetails":"https://backend.tvguide.com/tvschedules/tvguide/programdetails/9000317198/web"},{"airingAttrib":524308,"catId":5,"startTime":1736650800,"endTime":1736654400,"programId":9000415495,"title":"48 Hours","rating":null,"programDetails":"https://backend.tvguide.com/tvschedules/tvguide/programdetails/9000415495/web"}]}]},"links":{"self":{"href":"https://backend.tvguide.com/tvschedules/tvguide/9100001138/web?start=1736640000&duration=240&apiKey=DI9elXhZ3bU6ujsA2gXEKOANyncXGUGc"},"prev":{"href":"https://backend.tvguide.com/tvschedules/tvguide/9100001138/web?start=1736625600&duration=240&apiKey=DI9elXhZ3bU6ujsA2gXEKOANyncXGUGc"},"next":{"href":"https://backend.tvguide.com/tvschedules/tvguide/9100001138/web?start=1736654400&duration=240&apiKey=DI9elXhZ3bU6ujsA2gXEKOANyncXGUGc"}},"meta":{"componentName":null,"componentDisplayName":null,"componentType":null}}
|
||||
1
sites/tvguide.com/__data__/content2.json
Normal file
1
sites/tvguide.com/__data__/content2.json
Normal file
@@ -0,0 +1 @@
|
||||
{"data":{"duration":"240","providerId":"9100001138","startTime":"1736654400","items":[{"channel":{"fullName":"CBS National Schedule","name":"CBS","number":null,"sourceId":9200018514,"legacySourceId":null,"networkName":"CBS","networkId":1,"logo":"/provider/8/4/8-9200018514.png"},"programSchedules":[{"airingAttrib":524288,"catId":5,"startTime":1736654400,"endTime":1736661600,"programId":9000000408,"title":"Local Programs","rating":null,"programDetails":"https://backend.tvguide.com/tvschedules/tvguide/programdetails/9000000408/web"},{"airingAttrib":524288,"catId":5,"startTime":1736661600,"endTime":1736668800,"programId":9000000408,"title":"Local Programs","rating":null,"programDetails":"https://backend.tvguide.com/tvschedules/tvguide/programdetails/9000000408/web"}]}]},"links":{"self":{"href":"https://backend.tvguide.com/tvschedules/tvguide/9100001138/web?start=1736654400&duration=240&apiKey=DI9elXhZ3bU6ujsA2gXEKOANyncXGUGc"},"prev":{"href":"https://backend.tvguide.com/tvschedules/tvguide/9100001138/web?start=1736640000&duration=240&apiKey=DI9elXhZ3bU6ujsA2gXEKOANyncXGUGc"},"next":{"href":"https://backend.tvguide.com/tvschedules/tvguide/9100001138/web?start=1736668800&duration=240&apiKey=DI9elXhZ3bU6ujsA2gXEKOANyncXGUGc"}},"meta":{"componentName":null,"componentDisplayName":null,"componentType":null}}
|
||||
@@ -1,20 +1 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
|
||||
[]
|
||||
@@ -1,91 +0,0 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
1
sites/tvguide.com/__data__/program1.json
Normal file
1
sites/tvguide.com/__data__/program1.json
Normal file
@@ -0,0 +1 @@
|
||||
{"data":{"item":{"id":9000351140,"name":"FBI: International","isSportsEvent":false,"tvRating":"TV-14","categoryId":5,"subCategoryId":0,"episodeNumber":12,"mcoId":1060026058,"title":"FBI: International","type":"show","slug":"fbi-international","typeId":1,"images":[{"id":"2-da3822c4eec5e6100c9b6ff2ac667213","provider":"2","imageType":{"typeId":1,"typeName":"showcard","providerTypeName":"showcard"},"bucketType":"catalog","bucketPath":"/provider/2/13/2-da3822c4eec5e6100c9b6ff2ac667213.jpg","filename":"","width":3840,"height":2160},{"id":"2-d7bbccddf55702be0028e4c7b37d91d2","provider":"2","imageType":{"typeId":2,"typeName":"poster art","providerTypeName":"poster art"},"bucketType":"catalog","bucketPath":"/provider/2/2/2-d7bbccddf55702be0028e4c7b37d91d2.jpg","filename":"","width":1400,"height":2100}],"genres":[{"id":3,"name":"Action & Adventure","genres":["Action","Adventure"]},{"id":5,"name":"Suspense","genres":["Crime","Mystery","Thriller"]},{"id":1,"name":"Drama","genres":["Drama"]}],"metacriticSummary":null,"video":null,"parentId":1060026058,"description":"The owner of a prominent cyber security company is murdered in Copenhagen just before a massive data leak surfaces online, leading the NSA to ask the team for assistance in catching the killer and leaker before more data is revealed.","rating":"L","episodeTitle":"Gift","releaseYear":2024,"seoUrl":null,"episodeAirDate":"/Date(1715644800000)/","seasonNumber":3,"duration":null}},"links":{"self":{"href":"https://backend.tvguide.com/tvschedules/tvguide/programdetails/9000351140/web"}},"meta":{"componentName":null,"componentDisplayName":null,"componentType":null}}
|
||||
1
sites/tvguide.com/__data__/program2.json
Normal file
1
sites/tvguide.com/__data__/program2.json
Normal file
@@ -0,0 +1 @@
|
||||
{"data":{"item":{"id":9000000408,"name":"Local Programs","isSportsEvent":false,"tvRating":"TV-14","categoryId":5,"subCategoryId":0,"episodeNumber":null,"mcoId":null,"title":null,"type":null,"slug":null,"typeId":null,"images":[],"genres":[],"metacriticSummary":null,"video":null,"parentId":null,"description":"Local programming information.","rating":"L","episodeTitle":"Local Programs","releaseYear":null,"seoUrl":null,"episodeAirDate":null,"seasonNumber":null,"duration":null}},"links":{"self":{"href":"https://backend.tvguide.com/tvschedules/tvguide/programdetails/9000000408/web"}},"meta":{"componentName":null,"componentDisplayName":null,"componentType":null}}
|
||||
Reference in New Issue
Block a user