mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
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>
1 line
1.5 KiB
JSON
1 line
1.5 KiB
JSON
{"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}} |