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

Function safe_quote_url

main.py:70–75  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

68 print(f"[ERROR] 写入文件 {file_path} 失败: {str(e)}")
69
70def safe_quote_url(url: str) -> str:
71 try:
72 unquoted = unquote(url)
73 return quote(unquoted, safe=':/?&=')
74 except Exception:
75 return url
76
77def traditional_to_simplified(text: str) -> str:
78 if not hasattr(traditional_to_simplified, "converter"):

Callers 1

process_remote_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected