mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-28 20:41:19 +00:00
Break out of channel child elements once required data is acquired.
This commit is contained in:
parent
edc18e07fe
commit
f4f29a0e27
1 changed files with 2 additions and 0 deletions
|
|
@ -879,6 +879,8 @@ def parse_channels_only(source):
|
|||
display_name = child.text.strip()
|
||||
elif child.tag == 'icon':
|
||||
icon_url = child.get('src', '').strip()
|
||||
if display_name and icon_url:
|
||||
break # No need to continue if we have both
|
||||
|
||||
if not display_name:
|
||||
display_name = tvg_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue