Files
luuvasara 8d7502c437 Fix dna.fi guide: full-day results, hard errors on bad responses
The grabber requested each day as a fixed UTC+2 window. The API's
broadcast days start at 04:00 Europe/Helsinki, so during daylight
saving time (UTC+3) the misaligned interval was answered with a
"303 See Other" redirect to a widened two-day window. On top of that
the API paginates 20 items per response by default, so each day was
truncated to the first ~20 programmes.

- Request the exact broadcast-day window in Europe/Helsinki time
- Add limit=1000 so a full day fits in one response
- Drop the local-timezone day filter: the requested interval already
  bounds the results, and the filter discarded late-night programmes
  depending on the runner's timezone
- Throw on malformed or unrecognized responses instead of returning
  an empty list, so failures are reported as errors rather than a
  silently empty (but "successful") guide
2026-07-10 22:37:04 +03:00
..
2026-03-17 03:33:30 +03:00

dna.fi

https://www.dna.fi/viihde/dna-viihde/tvopas

Download the guide

npm run grab --- --sites=dna.fi

Update channel list

npm run channels:parse --- --config=./sites/dna.fi/dna.fi.config.js --output=./sites/dna.fi/dna.fi.channels.xml

Test

npm test --- dna.fi