mirrors-multidioma

This commit is contained in:
2026-03-17 14:03:14 +01:00
parent 07c0c193a7
commit 73d8c2f623
2 changed files with 101 additions and 8 deletions

2
app.py
View File

@@ -257,6 +257,7 @@ def group_channels(raw_entries: list, group_meta: dict) -> list:
'resolution': parsed['resolution'],
'acestream_hash': entry['acestream_hash'],
'status': 'unknown',
'country_code': country_code_from_logo_url('', entry['tvg_logo']),
}
if key not in channel_map:
@@ -331,6 +332,7 @@ def load_from_json_content(data: dict, source_file: str) -> None:
m.pop('raw_name', None)
m.pop('quality_marker', None)
m.setdefault('status', 'unknown')
m.setdefault('country_code', '')
group_meta = {g['name']: g.get('logo', '') for g in data.get('groups', [])}
groups = sorted({ch['group'] for ch in channels})
state = {