MCPcopy Create free account
hub / github.com/CCSH/IPTV / clean_url

Function clean_url

main.py:134–138  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

132 return name.strip()
133
134def clean_url(url: str) -> str:
135 if not url:
136 return ""
137 dollar_idx = url.rfind('$')
138 return url[:dollar_idx].strip() if dollar_idx != -1 else url.strip()
139
140def correct_channel_name(name: str, corrections: dict) -> str:
141 if not name or name not in corrections:

Callers 1

process_single_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected