Skip to content

Commit

Permalink
update template xml to fix time parsing for some feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
yinan-c committed Oct 5, 2023
1 parent ce9d488 commit 35645a2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG-zh.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 更新日志
- 2023-10-05:
- 更新 xml 模板,修复了一些 RSS 源中时间解析的 bug。

- 2023-09-20:
- GitHub Pages 地址不再需要手动在 `main.py` 中设置,而是直接从 repo secrets 中获取用户名,然后拼接成 `https://username.github.io/repo_name/` 的形式。如果你 fork 了本项目并重命名了仓库,你仍然需要手动修改 url 中的仓库名。
- 改变存放 xml 的路径,从 `/rss/` 改为 `/docs/`
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# CHANGELOG

- 2023-10-05:
- Updated the xml template, fixed a bug in parsing time from some RSS feeds.
- 2023-09-20:
- GitHub Pages destination url is no longer needed to be set manually in `main.py`. Instead, the script directly get the username from repo secrets and concatenate it to `https://username.github.io/repo_name/`. You will still need to manually change the repo name used in the script if you forked this repo and renamed it.
- Changed the path to store xml files from `/rss/` to `/docs/`
Expand Down
11 changes: 8 additions & 3 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ summary_length = "200"
[source001]
name = "ifanr"
url = "https://www.ifanr.com/feed"
max_items = "5"
max_items = "2"

[source002]
name = "brett-terpstra"
url = "https://brett.trpstra.net/brettterpstra"
max_items = "5"
max_items = "2"
filter_apply = "title"
filter_type = "exclude"
filter_rule = "TextExpander"
Expand All @@ -25,4 +25,9 @@ max_items = "0"
[source004]
name = "sspai"
url = "https://rsshub.app/sspai/index"
max_items = "5"
max_items = "2"

[source005]
name = "robb-knight"
url = "https://rknight.me/feed.xml"
max_items = "1"
2 changes: 1 addition & 1 deletion template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ entry.article }}
]]></content:encoded>
{% if entry.published %}<pubDate>{{ entry.published }}</pubDate>{% endif %}
{% if entry.updated %}<updated>{{ entry.updated }}</updated>{% endif %}
{% if entry.updated %}<pubDate>{{ entry.updated }}</pubDate>{% endif %}
</item>{% endfor %}
{% for entry in existing_entries %}
<item>
Expand Down

0 comments on commit 35645a2

Please sign in to comment.