Repository navigation
Conversation
|
Thanks for the update, the Plus-specific guides are a good change. Before merging:
|
|
I pushed a commit to this branch, so please pull before doing more work.
Still open: retargeting to |
KTLA+ and PIX11+ returned 404: the keys under 'livestreams' belong to other stream IDs. Use the Nexstar key NewsNation already uses with each page's main player ID (WGN+ now tops out at 720p). Report the HTTP status and Lura error code when no stream comes back, and let one station's failed guide leave the others updating. Add the stations to the Free Networks docstring and README. Checked live: all three return a master and variant playlist; a failed KTLA guide still updates the other two; a bad key reports Lura code 101.
6f1a910 to
08bd078
Compare
|
Nice, It should be rebased |
Ranges like '11-1p', '10-12a' and '9-12p' borrowed the end's am/pm for the start, so '11-1p' became 11pm-1pm and wrapped into a 14-hour block, overlapping other shows in the EPG. Add _range_minutes(), shared by _time_ranges and _recurring_slots. When the start has no am/pm it tries both meridiems and keeps the shorter duration. Verified on extracted functions: 11-1p -> 11:00-13:00, 10-12a -> 22:00-00:00, 9-12p -> 09:00-12:00, 8-9p -> 20:00-21:00, 11p-1a -> 23:00-01:00.
|
Thanks for the PR. Review found one real bug, which I fixed and pushed to this branch in 951d1ab. Fixed: time ranges with no am/pm on the start Remaining nits (not blocking, yours to take or leave)
|
resolve(): wrap the WordPress lookup in the same RequestException handling as the Lura call (reporting only the exception type, no URL), and guard a non-dict 'content' field. _schedule_date: choose the year (last, this or next) nearest today instead of only rolling forward past 30 days, so 'preempted December 30' read on Jan 2 is last month and 'January 2' read on Dec 30 is next month. Move the Anvato access key into _common as ANVATO_ACCESS_KEY so nexstar.py no longer imports a private name from newsnation.py, and fix the blank-line spacing before class Nexstar. Verified _schedule_date on extracted code across year boundaries and a leap day.
|
Pushed 1480eff, which fixes the remaining nits from my earlier comment, except one that turned out not to be a bug.
|
This adds WGN+, KTLA+, and PIX11+. There are a lot more Nexstar owned channels that likely follow the same pattern but I started with these .