mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
remove typehint to support older python support in kodi
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user