refactor: extract cache network and compatibility entrypoints

This commit is contained in:
jxxghp
2026-08-22 23:13:59 +08:00
parent 3a43b1be3e
commit 56cb7294eb
9 changed files with 273 additions and 212 deletions
+6
View File
@@ -264,6 +264,12 @@ class RssHelper:
def parse(self, url, proxy: bool = False,
timeout: Optional[int] = 15, headers: dict = None, ua: str = None) -> Union[List[dict], None, bool]:
"""解析 RSS 地址并保留插件兼容的返回约定。"""
return self._parse_impl(url, proxy=proxy, timeout=timeout, headers=headers, ua=ua)
def _parse_impl(self, url, proxy: bool = False,
timeout: Optional[int] = 15, headers: dict = None,
ua: str = None) -> Union[List[dict], None, bool]:
"""
解析RSS订阅URL,获取RSS中的种子信息
:param url: RSS地址