epg
epg copied to clipboard
Add tataplay.com
Fixes #2740
npm test --- tataplay.com
> test
> run-script-os tataplay.com
> test:win32
> SET "TZ=Pacific/Nauru" && npx jest --runInBand tataplay.com
PASS sites/tataplay.com/tataplay.com.test.js
√ can generate valid url (18 ms)
√ can parse response (13 ms)
√ can handle empty guide (2 ms)
√ can parse channel list (8 ms)
Test Suites: 1 passed, 1 total
Tests: 4 passed, 4 total
Snapshots: 0 total
Time: 2.179 s
Ran all test suites matching /tataplay.com/i.
npm run grab --- --site=tataplay.com
> grab
> npx tsx scripts/commands/epg/grab.ts --site=tataplay.com
starting...
config:
output: guide.xml
maxConnections: 1
gzip: false
site: tataplay.com
loading channels...
found 785 channel(s)
run:
[1/785] tataplay.com (en) - IndiaToday.in - Jun 11, 2025 (47 programs)
[2/785] tataplay.com (en) - 3 - Jun 11, 2025 (30 programs)
[3/785] tataplay.com (en) - B4UMusic.in - Jun 11, 2025 (20 programs)
[4/785] tataplay.com (en) - IndiaNewsHaryana.in - Jun 11, 2025 (48 programs)
[5/785] tataplay.com (en) - 12 - Jun 11, 2025 (8 programs)
[6/785] tataplay.com (en) - B4UMovies.in - Jun 11, 2025 (8 programs)
[7/785] tataplay.com (en) - TV9Telugu.in - Jun 11, 2025 (46 programs)
[8/785] tataplay.com (en) - 10 - Jun 11, 2025 (25 programs)
[9/785] tataplay.com (en) - IndiaNewsRajasthan.in - Jun 11, 2025 (48 programs)
[10/785] tataplay.com (en) - 30 - Jun 11, 2025 (61 programs)
...
Unfortunately I can't validate the config from my side. Even through VPN it gives error 403:
npm run grab --- --site=tataplay.com --proxy=socks://127.0.0.1:1086
> grab
> npx tsx scripts/commands/epg/grab.ts --site=tataplay.com --proxy=socks://127.0.0.1:1086
starting...
config:
output: guide.xml
maxConnections: 1
gzip: false
site: tataplay.com
proxy: socks://127.0.0.1:1086
loading channels...
found 785 channel(s)
run:
[1/785] tataplay.com (en) - IndiaToday.in - Jun 15, 2025 (0 programs)
ERR: Request failed with status code 403
[2/785] tataplay.com (en) - 3 - Jun 15, 2025 (0 programs)
ERR: Request failed with status code 403
[3/785] tataplay.com (en) - B4UMusic.in - Jun 15, 2025 (0 programs)
ERR: Request failed with status code 403
[4/785] tataplay.com (en) - IndiaNewsHaryana.in - Jun 15, 2025 (0 programs)
ERR: Request failed with status code 403
[5/785] tataplay.com (en) - 30 - Jun 15, 2025 (0 programs)
ERR: Request failed with status code 403
[6/785] tataplay.com (en) - 63 - Jun 15, 2025 (0 programs)
ERR: Request failed with status code 403
[7/785] tataplay.com (en) - PTCPunjabi.in - Jun 15, 2025 (0 programs)
ERR: Request failed with status code 403
[8/785] tataplay.com (en) - 222 - Jun 15, 2025 (0 programs)
ERR: Request failed with status code 403
[9/785] tataplay.com (en) - 401 - Jun 15, 2025 (0 programs)
ERR: Request failed with status code 403
...
Tests passed successfully.
I can successfully grab data, though I'll get to the tests later, as i'm trying to upgrade Jest in this repo. Version 30 came out and it permits us to remove a few old dependencies that could lead to vulns.
(i know, i'm that kind of guy.)