Commit Graph

28 Commits

Author SHA1 Message Date
Bin Wang 6b7381e1e3
feat(core): add custom fields to atom feed (#9355)
* Add custom fields to atom feed

Atom allows to extend the xml with custom namespaces. This commit is
a first commit that tries to add some custom RSSHub fields to atom feed.

In this commit, I added three very common fields: upvotes, downvotes
and comments. Lots of websites has these common fields, like Youtube,
Twitter, Reddit, HackerNews and so on. Within these fields, RSS readers
can have more information to sort the contents, and can display these
information to user in a better format.

The document has been updated to reflect these new fields. I also changed
Bilibili video route as an example to show how to add number of comments
to the generated feed.

* docs: interactions
2022-04-18 02:54:32 +08:00
stanly0726 996b66fdf2
fix(core): issue #8162 (#9533)
* fixing issue #8162

* fixing issue #8162

* change max width value of class .debu-item

* remove duplicated css

* max width

* Update welcome.art
2022-04-14 01:16:26 +08:00
Rongrong 5b35471e39
fix(core): offending RFC4287 (#9441)
* fix(core): offending RFC4287

should not leave `<updated>` blank when `<published>` is not blank
these two fields MUST conform to the "date-time" production in RFC3339

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* test(common-utils): complete tests

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* test(template): restrict expected value of `pubDate`

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-02 17:44:45 +08:00
Tony baeafb97a5
feat: git hash on error (#9373) 2022-03-24 01:10:47 +08:00
TonyRL b93f6fe856 fix: error page bug report url 2022-03-15 15:30:25 +00:00
Rongrong 3364b7eb1d
fix(route): migrate invalid `enclosure_length` usages to `itunes_duration` (#9291)
Close #9287

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-10 20:54:29 +08:00
NeverBehave 0792f7ba25
feat(core): first attempt to init script standard (#8224)
- lazy load
- rate limit per path
- init .debug.json support
- docs
- maintainer
- radar
2021-09-22 05:41:00 -07:00
Queensferry 8ebbd0d708
fix: [core] atom feed template (#6628) (#6726)
conforming to RFC 4278 4.1.3.3. Processing Model
2021-01-25 20:21:32 -05:00
Henry c292502e14
feat: 优化错误输出
fix #5982

通过`NODE_ENV`控制错误输出
2020-10-23 17:35:24 +01:00
tuzi3040 52cf1cab71
fix: atom.art id (#5401) 2020-08-18 21:13:29 +01:00
Zhi Yang 64496ca55d
fix: Support itunes_category and itunes_explicit (#4610) 2020-05-11 18:28:49 +08:00
fengkx 4384214326
feat: robots not index config (#4503) 2020-04-23 19:18:47 +08:00
Zhi Yang 68b4e172f5
feat: Support itunes_category and itunes_explicit (#4483) 2020-04-19 19:00:37 +08:00
Sean Wong 814542a49a
fix: remove redundant `>` (#4039) 2020-02-25 00:02:11 +08:00
DIYgod 0d005b0cfb
feat: handle default guid 2019-12-16 14:12:08 +08:00
DIYgod 16263b020c
test: fix debug test case 2019-09-04 21:56:16 +08:00
DIYgod 8c82d79d54
fix: style of welcome page 2019-09-04 18:35:34 +08:00
DIYgod 24cab914d8
feat: error page 2019-09-04 16:00:00 +08:00
SettingDust fd82474be6 feat: media rss & yande.re media (#2924) 2019-08-29 18:42:00 +08:00
DIYgod 745eb0d52a
test: add template enclosure test cases 2019-08-23 15:44:52 +08:00
DIYgod f7e8682ba8
feat: add error routes and error paths info 2019-08-23 00:15:13 +08:00
DIYgod c187811b97
feat: node name 2019-08-15 23:58:50 +08:00
Cloud e7ed5b3800 fix: podcast error (#2852) 2019-08-14 22:53:40 +08:00
Cloud 9410ee915f feat: 1 rule for feed validation (#2828) 2019-08-11 23:11:25 +08:00
Cloud 4d9c9c08e7 feat: 2 rules for feed validation (#2825) 2019-08-11 01:30:59 +08:00
DIYgod a8a4c050f6
docs: add icon, move logo.png 2019-04-23 15:03:58 +08:00
DIYgod 0a62389eaa
test: middleware/template 2019-01-31 11:45:00 +08:00
DIYgod 38a90e29b0
optimize directory structure 2018-12-26 18:35:10 +08:00