mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-06-12 15:10:49 +00:00
refactor(economist): 调整世界简报的链接生成规则
- 将标题前 30 个字符用于生成链接改为前 50 个字符 - 这个改动旨在提高链接的准确性和可读性
This commit is contained in:
@@ -24,7 +24,7 @@ def parse_news(gobbet):
|
||||
item = {
|
||||
'title': title,
|
||||
'description': gobbet, # 简单设置正文为描述
|
||||
'link': f"{domain}/the-world-in-brief?from={title[:30]}" # 生成链接
|
||||
'link': f"{domain}/the-world-in-brief?from={title[:50]}" # 生成链接
|
||||
}
|
||||
return item
|
||||
|
||||
|
||||
Reference in New Issue
Block a user