RTL fix channel logo ratio

This commit is contained in:
Nirvana
2026-05-18 10:21:18 +02:00
parent 30f2cfe7e3
commit 99e871f677
2 changed files with 5 additions and 2 deletions
@@ -105,7 +105,9 @@ class RTLPlusChannelManager:
item_content = item.get("itemContent", {})
channel_data = item_content.get("channel", {})
title = channel_data.get("title")
logo_id = channel_data.get("image", {}).get("id")
image = channel_data.get("image", {})
canonical_ratio = image.get("ratio", "1:1")
logo_id = image.get("idsByRatio", {}).get(canonical_ratio) or image.get("id")
# Reuse the shared unwrap_target helper from layout_helpers
target = unwrap_target(item_content.get("action", {}).get("target", {}))
+2 -1
View File
@@ -77,6 +77,7 @@ that /vod/search is not swallowed by get_vod_node.
from bottle import request, response
from streaming_providers.base.utils import logger
from typing import Optional, Tuple
def setup_vod_routes(app, manager):
@@ -114,7 +115,7 @@ def setup_vod_routes(app, manager):
result.append(d)
return result
def _parse_paging_params() -> tuple[str | None, int]:
def _parse_paging_params() -> Tuple[Optional[str], int]:
"""
Extract and validate paging query parameters from the current request.