remove typehint to support older python support in kodi

This commit is contained in:
mhdzumair
2025-03-01 10:47:20 +05:30
parent de5dd555c0
commit c08b2d9cbe
+2 -4
View File
@@ -14,9 +14,7 @@ resolution_mapper = {
}
def parse_stream_info(
name: str, description: str, behaviour_hint: dict
) -> dict[str, str]:
def parse_stream_info(name, description, behaviour_hint):
"""Parse stream name and description into structured information."""
info = {
"name": behaviour_hint.get("filename") or name,
@@ -65,7 +63,7 @@ def parse_stream_info(
return info
def format_stream_label(name, description) -> tuple[str, str]:
def format_stream_label(name, description):
"""Format stream information into Kodi-friendly labels."""
# Main label components
name = name.replace("⚡️", "CACHED").replace("", "NOT CACHED")