Cleaned up unused code.

This commit is contained in:
SergeantPanda 2025-04-03 15:30:42 -05:00
parent b5b21019b9
commit 35311aa391

View file

@ -195,15 +195,6 @@ def generate_epg(request, profile_name=None):
if custom_data.get('new', False):
xml_lines.append(f' <new />')
# Define all properties we specifically handle to avoid adding them as comments
skip_keys = [
'categories', 'episode', 'season', 'rating', 'rating_system', 'credits',
'year', 'country', 'icon', 'previously_shown', 'premiere', 'new',
'onscreen_episode'
]
# Don't add comments for standard properties - XMLTV clients don't need them
# and they just clutter the output
except Exception as e:
xml_lines.append(f' <!-- Error parsing custom properties: {str(e)} -->')