mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-09-24 10:02:37 +02:00
RTL fix channel logo ratio
This commit is contained in:
@@ -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
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user