mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Fix: Access the first element directly for EPG ID assignment in process_data
This commit is contained in:
parent
d3c659d426
commit
ab7b92bcbd
1 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ def process_data(input_data):
|
|||
if chan["tvg_id"]:
|
||||
epg_match = [epg["id"] for epg in epg_data if epg["tvg_id"] == chan["tvg_id"]]
|
||||
if epg_match:
|
||||
chan["epg_data_id"] = epg_match[0]["id"]
|
||||
# Fix: Access the first element directly since epg_match contains the IDs themselves
|
||||
chan["epg_data_id"] = epg_match[0] # Directly use the integer ID
|
||||
eprint(f"Channel {chan['id']} '{chan['name']}' => EPG found by tvg_id={chan['tvg_id']}")
|
||||
channels_to_update.append(chan)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue