Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions worker/epg.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function formatDateTime(time = '') {
async function diypHandle(channel, date, request) {
const tag = date.replace(/-/g, '.');
const res = await jq_fetch(new Request(`https://github.com/celetor/epg/releases/download/${tag}/112114.json`, request));
if (!res.ok) throw new Error(`EPG fetch failed: ${res.status}`);
const data = await res.json();
if (!Array.isArray(data)) throw new Error('Invalid EPG data format');

const program_info = {
date,
Expand Down