From d8a2d5b6309e9010a6526d2081a03a7d503a812d Mon Sep 17 00:00:00 2001 From: Quan Date: Mon, 16 Sep 2024 14:02:19 +0800 Subject: [PATCH] fix bug #536 (#537) * fix bug #536 * v2.6.25 --- pyproject.toml | 2 +- src/plugins/ELF_RSS2/__init__.py | 2 +- src/plugins/ELF_RSS2/rss_class.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 085cad36..5ee17b4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ELF_RSS" -version = "2.6.24" +version = "2.6.25" description = "QQ机器人 RSS订阅 插件,订阅源建议选择 RSSHub" authors = ["Quan666 "] license = "GPL-3.0-only" diff --git a/src/plugins/ELF_RSS2/__init__.py b/src/plugins/ELF_RSS2/__init__.py index a1277818..1e0114cd 100644 --- a/src/plugins/ELF_RSS2/__init__.py +++ b/src/plugins/ELF_RSS2/__init__.py @@ -14,7 +14,7 @@ from .rss_class import Rss from .utils import send_message_to_admin -VERSION = "2.6.24" +VERSION = "2.6.25" __plugin_meta__ = PluginMetadata( name="ELF_RSS", diff --git a/src/plugins/ELF_RSS2/rss_class.py b/src/plugins/ELF_RSS2/rss_class.py index 8970248c..0aadebc8 100644 --- a/src/plugins/ELF_RSS2/rss_class.py +++ b/src/plugins/ELF_RSS2/rss_class.py @@ -50,7 +50,7 @@ def get_url(self, rsshub: str = str(config.rsshub)) -> str: if URL(self.url).scheme in ["http", "https"]: return self.url # 去除 rsshub地址末尾的斜杠 和 订阅地址开头的斜杠 - return f"{rsshub.rstrip("/")}/{self.url.lstrip("/")}" + return f"{rsshub.rstrip('/')}/{self.url.lstrip('/')}" # 读取记录 @staticmethod