From 57e1f69cf1f0362a90a6d0c81aaf026efa6a4534 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2020 16:51:42 +0000 Subject: [PATCH 01/37] chore(deps-dev): bump eslint from 7.8.0 to 7.8.1 Bumps [eslint](https://github.com/eslint/eslint) from 7.8.0 to 7.8.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.8.0...v7.8.1) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 24 +++++++++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 86311b800..1a129387e 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@vuepress/plugin-pwa": "1.5.4", "cross-env": "7.0.2", "entities": "2.0.3", - "eslint": "7.8.0", + "eslint": "7.8.1", "eslint-config-prettier": "6.11.0", "eslint-plugin-prettier": "3.1.4", "jest": "26.4.2", diff --git a/yarn.lock b/yarn.lock index 2dde3156a..2ee7a7756 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1053,14 +1053,20 @@ enabled "2.0.x" kuler "^2.0.0" -"@eslint/eslintrc@^0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.1.0.tgz#3d1f19fb797d42fb1c85458c1c73541eeb1d9e76" - integrity sha512-bfL5365QSCmH6cPeFT7Ywclj8C7LiF7sO6mUGzZhtAMV7iID1Euq6740u/SRi4C80NOnVz/CEfK8/HO+nCAPJg== +"@eslint/eslintrc@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.1.3.tgz#7d1a2b2358552cc04834c0979bd4275362e37085" + integrity sha512-4YVwPkANLeNtRjMekzux1ci8hIaH5eGKktGqR0d3LWsKNn5B2X/1Z6Trxy7jQXl9EBGE6Yj02O+t09FMeRllaA== dependencies: ajv "^6.12.4" debug "^4.1.1" + espree "^7.3.0" + globals "^12.1.0" + ignore "^4.0.6" import-fresh "^3.2.1" + js-yaml "^3.13.1" + lodash "^4.17.19" + minimatch "^3.0.4" strip-json-comments "^3.1.1" "@hapi/address@2.x.x": @@ -4914,13 +4920,13 @@ eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== -eslint@7.8.0: - version "7.8.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.8.0.tgz#9a3e2e6e4d0a3f8c42686073c25ebf2e91443e8a" - integrity sha512-qgtVyLZqKd2ZXWnLQA4NtVbOyH56zivOAdBFWE54RFkSZjokzNrcP4Z0eVWsZ+84ByXv+jL9k/wE1ENYe8xRFw== +eslint@7.8.1: + version "7.8.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.8.1.tgz#e59de3573fb6a5be8ff526c791571646d124a8fa" + integrity sha512-/2rX2pfhyUG0y+A123d0ccXtMm7DV7sH1m3lk9nk2DZ2LReq39FXHueR9xZwshE5MdfSf0xunSaMWRqyIA6M1w== dependencies: "@babel/code-frame" "^7.0.0" - "@eslint/eslintrc" "^0.1.0" + "@eslint/eslintrc" "^0.1.3" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" From 72386443cd2768c31c60a34864b97fb74e42bbaa Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 4 Sep 2020 20:00:17 +0000 Subject: [PATCH 02/37] chore(deps): [security] bump http-proxy from 1.17.0 to 1.18.1 Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.17.0 to 1.18.1. **This update includes a security fix.** - [Release notes](https://github.com/http-party/node-http-proxy/releases) - [Changelog](https://github.com/http-party/node-http-proxy/blob/master/CHANGELOG.md) - [Commits](https://github.com/http-party/node-http-proxy/compare/1.17.0...1.18.1) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/yarn.lock b/yarn.lock index 3131d26b7..9d3cfee6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5010,10 +5010,10 @@ event-target-shim@^5.0.0: resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== -eventemitter3@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.2.tgz#2d3d48f9c346698fce83a85d7d664e98535df6e7" - integrity sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q== +eventemitter3@^4.0.0: + version "4.0.7" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== events@^1.1.0: version "1.1.1" @@ -5423,11 +5423,9 @@ fn.name@1.x.x: integrity sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw== follow-redirects@^1.0.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.7.0.tgz#489ebc198dc0e7f64167bd23b03c4c19b5784c76" - integrity sha512-m/pZQy4Gj287eNy94nivy5wchN3Kp+Q5WgUPNy5lJSZ3sgkVKSYV/ZChMAQVIgx1SqfZ2zBZtPA2YlXIWxxJOQ== - dependencies: - debug "^3.2.6" + version "1.13.0" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.0.tgz#b42e8d93a2a7eea5ed88633676d6597bc8e384db" + integrity sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA== for-in@^1.0.2: version "1.0.2" @@ -6258,11 +6256,11 @@ http-proxy-middleware@^0.19.1: micromatch "^3.1.10" http-proxy@^1.17.0: - version "1.17.0" - resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.17.0.tgz#7ad38494658f84605e2f6db4436df410f4e5be9a" - integrity sha512-Taqn+3nNvYRfJ3bGvKfBSRwy1v6eePlm3oc/aWVxZp57DQr5Eq3xhKJi7Z4hZpS8PC3H4qI+Yly5EmFacGuA/g== + version "1.18.1" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" + integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== dependencies: - eventemitter3 "^3.0.0" + eventemitter3 "^4.0.0" follow-redirects "^1.0.0" requires-port "^1.0.0" From c1a1a95f28a42fc6ece3166f2a02bbab6d417ada Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 9 Sep 2020 11:32:37 +0800 Subject: [PATCH 03/37] docs: update sponsors --- README.md | 4 ++-- docs/README.md | 3 +-- docs/en/README.md | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fc631a953..50cd25f0c 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,12 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以 ### Special Sponsors
-          +   
### Sponsors -[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [NeverBehave](https://never.pet/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) . [feeds.pub](https://feeds.pub) +[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) . [feeds.pub](https://feeds.pub) [![](https://opencollective.com/static/images/become_sponsor.svg)](https://docs.rsshub.app/en/support/) diff --git a/docs/README.md b/docs/README.md index 97ea97466..c652fced6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -27,11 +27,10 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以 rixCloud 期待 -Authing ### Sponsors -[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [NeverBehave](https://never.pet/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) . [feeds.pub](https://feeds.pub) +[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) . [feeds.pub](https://feeds.pub) [![](https://opencollective.com/static/images/become_sponsor.svg)](/support/) diff --git a/docs/en/README.md b/docs/en/README.md index ee668f5bd..07ab3c0df 100644 --- a/docs/en/README.md +++ b/docs/en/README.md @@ -25,11 +25,10 @@ RSSHub delivers millions of contents aggregated from all kinds of sources, our v - ### Sponsors -[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [NeverBehave](https://never.pet/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) . [feeds.pub](https://feeds.pub) +[Sayori Studio](https://t.me/SayoriStudio) . [Sion Kazama](https://blog.sion.moe) . [琚致远](https://www.shaoyaoju.org/) . [Rolly RSS 阅读器](https://www.coolapk.com/apk/239500) . [mokeyjay](https://www.mokeyjay.com/) . [tkaray](https://rayray.moe/) . [萌开源联盟](https://www.moeunion.com) . [hooke007](https://github.com/hooke007/MPV_lazy) . [feeds.pub](https://feeds.pub) [![](https://opencollective.com/static/images/become_sponsor.svg)](/en/support/) From 0fc8a502fd074a8afb8d62876e1c2405c68b8b3f Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 9 Sep 2020 11:46:38 +0800 Subject: [PATCH 04/37] docs: update sponsors --- README.md | 2 +- docs/README.md | 1 - docs/en/README.md | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 50cd25f0c..923f30a71 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以 ### Special Sponsors
-    +
### Sponsors diff --git a/docs/README.md b/docs/README.md index c652fced6..fc1ae2b22 100644 --- a/docs/README.md +++ b/docs/README.md @@ -26,7 +26,6 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以 ### Special Sponsors rixCloud -期待 ### Sponsors diff --git a/docs/en/README.md b/docs/en/README.md index 07ab3c0df..82ce8a466 100644 --- a/docs/en/README.md +++ b/docs/en/README.md @@ -24,7 +24,6 @@ RSSHub delivers millions of contents aggregated from all kinds of sources, our v ### Special Sponsors - ### Sponsors From 01473988b2b9af318026c1673896e4c8ce179e48 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 9 Sep 2020 14:45:35 +0000 Subject: [PATCH 05/37] chore(deps): bump got from 11.6.0 to 11.6.1 Bumps [got](https://github.com/sindresorhus/got) from 11.6.0 to 11.6.1. - [Release notes](https://github.com/sindresorhus/got/releases) - [Commits](https://github.com/sindresorhus/got/compare/v11.6.0...v11.6.1) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 5ea1e95f0..c017201ea 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "fanfou-sdk": "4.2.0", "git-rev-sync": "3.0.1", "googleapis": "59.0.0", - "got": "11.6.0", + "got": "11.6.1", "he": "1.2.0", "hooman": "1.2.6", "https-proxy-agent": "5.0.0", diff --git a/yarn.lock b/yarn.lock index befa88ea6..3982565f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5850,10 +5850,10 @@ googleapis@59.0.0: google-auth-library "^6.0.0" googleapis-common "^4.4.0" -got@11.6.0: - version "11.6.0" - resolved "https://registry.yarnpkg.com/got/-/got-11.6.0.tgz#4978c78f3cbc3a45ee95381f8bb6efd1db1f4638" - integrity sha512-ErhWb4IUjQzJ3vGs3+RR12NWlBDDkRciFpAkQ1LPUxi6OnwhGj07gQxjPsyIk69s7qMihwKrKquV6VQq7JNYLA== +got@11.6.1: + version "11.6.1" + resolved "https://registry.yarnpkg.com/got/-/got-11.6.1.tgz#a307122fc136c446f676f7b939d89dbc6ed6b909" + integrity sha512-6izGvOsrd/4CsIdQMgweFOTCtS4sAwJTuCzIuVoTbCDzt3+wa3eGIHhSIMgEF6gfCDenslGlMUmAdPap5DkirQ== dependencies: "@sindresorhus/is" "^3.1.1" "@szmarczak/http-timer" "^4.0.5" From 1f1b2914147d31e9d8887c953a2ceaff643bdecc Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2020 00:37:57 +0100 Subject: [PATCH 06/37] chore(deps): bump @sentry/node from 5.22.3 to 5.23.0 (#5637) Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 5.22.3 to 5.23.0. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/5.22.3...5.23.0) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 92 ++++++++++++++++++++++++++-------------------------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/package.json b/package.json index c017201ea..82a66d1c3 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "dependencies": { "@koa/router": "9.4.0", "@postlight/mercury-parser": "2.2.0", - "@sentry/node": "5.22.3", + "@sentry/node": "5.23.0", "aes-js": "3.1.2", "art-template": "4.13.2", "cheerio": "1.0.0-rc.3", diff --git a/yarn.lock b/yarn.lock index 3982565f6..e1750cfaa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1345,72 +1345,72 @@ dependencies: safe-buffer "^5.0.1" -"@sentry/core@5.22.3": - version "5.22.3" - resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.22.3.tgz#030f435f2b518f282ba8bd954dac90cd70888bd7" - integrity sha512-eGL5uUarw3o4i9QUb9JoFHnhriPpWCaqeaIBB06HUpdcvhrjoowcKZj1+WPec5lFg5XusE35vez7z/FPzmJUDw== +"@sentry/core@5.23.0": + version "5.23.0" + resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.23.0.tgz#4d12ee4f5593e66fa5ffde0f9e9164a5468e5cec" + integrity sha512-K8Wp/g1opaauKJh2w5Z1Vw/YdudHQgH6Ng5fBazHZxA7zB9R8EbVKDsjy8XEcyHsWB7fTSlYX/7coqmZNOADdg== dependencies: - "@sentry/hub" "5.22.3" - "@sentry/minimal" "5.22.3" - "@sentry/types" "5.22.3" - "@sentry/utils" "5.22.3" + "@sentry/hub" "5.23.0" + "@sentry/minimal" "5.23.0" + "@sentry/types" "5.23.0" + "@sentry/utils" "5.23.0" tslib "^1.9.3" -"@sentry/hub@5.22.3": - version "5.22.3" - resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.22.3.tgz#08309a70d2ea8d5e313d05840c1711f34f2fffe5" - integrity sha512-INo47m6N5HFEs/7GMP9cqxOIt7rmRxdERunA3H2L37owjcr77MwHVeeJ9yawRS6FMtbWXplgWTyTIWIYOuqVbw== +"@sentry/hub@5.23.0": + version "5.23.0" + resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.23.0.tgz#7350c2971fafdb9f883f0629fd1b35d2288cd6e1" + integrity sha512-P0sevLI9qAQc1J+AcHzNXwj83aG3GKiABVQJp0rgCUMtrXqLawa+j8pOHg8p7QWroHM7TKDMKeny9WemXBgzBQ== dependencies: - "@sentry/types" "5.22.3" - "@sentry/utils" "5.22.3" + "@sentry/types" "5.23.0" + "@sentry/utils" "5.23.0" tslib "^1.9.3" -"@sentry/minimal@5.22.3": - version "5.22.3" - resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.22.3.tgz#706e4029ae5494123d3875c658ba8911aa5cc440" - integrity sha512-HoINpYnVYCpNjn2XIPIlqH5o4BAITpTljXjtAftOx6Hzj+Opjg8tR8PWliyKDvkXPpc4kXK9D6TpEDw8MO0wZA== +"@sentry/minimal@5.23.0": + version "5.23.0" + resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.23.0.tgz#93df781a98f0b334425f68b1fa0f4e1a86d8fa45" + integrity sha512-/w/B7ShMVu/tLI0/A5X+w6GfdZIQdFQihWyIK1vXaYS5NS6biGI3K6DcACuMrD/h4BsqlfgdXSOHHrmCJcyCXQ== dependencies: - "@sentry/hub" "5.22.3" - "@sentry/types" "5.22.3" + "@sentry/hub" "5.23.0" + "@sentry/types" "5.23.0" tslib "^1.9.3" -"@sentry/node@5.22.3": - version "5.22.3" - resolved "https://registry.yarnpkg.com/@sentry/node/-/node-5.22.3.tgz#adea622eae6811e11edc8f34209c912caed91336" - integrity sha512-TCCKO7hJKiQi1nGmJcQfvbbqv98P08LULh7pb/NaO5pV20t1FtICfGx8UMpORRDehbcAiYq/f7rPOF6X/Xl5iw== +"@sentry/node@5.23.0": + version "5.23.0" + resolved "https://registry.yarnpkg.com/@sentry/node/-/node-5.23.0.tgz#c5deb3e4842abacbd40ffaf296971e47df2f6e6c" + integrity sha512-WFiAI9+XALB144LRYsWt4aM6soxMRAp1SQ72H0LNOYQXyei5hnKXLmL8UH5RHJFD60Y8S42tIhZkdPPXSq7HgQ== dependencies: - "@sentry/core" "5.22.3" - "@sentry/hub" "5.22.3" - "@sentry/tracing" "5.22.3" - "@sentry/types" "5.22.3" - "@sentry/utils" "5.22.3" + "@sentry/core" "5.23.0" + "@sentry/hub" "5.23.0" + "@sentry/tracing" "5.23.0" + "@sentry/types" "5.23.0" + "@sentry/utils" "5.23.0" cookie "^0.4.1" https-proxy-agent "^5.0.0" lru_map "^0.3.3" tslib "^1.9.3" -"@sentry/tracing@5.22.3": - version "5.22.3" - resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-5.22.3.tgz#9b5a376e3164c007a22e8642ec094104468cac0c" - integrity sha512-Zp59kMCk5v56ZAyErqjv/QvGOWOQ5fRltzeVQVp8unIDTk6gEFXfhwPsYHOokJe1mfkmrgPDV6xAkYgtL3KCDQ== +"@sentry/tracing@5.23.0": + version "5.23.0" + resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-5.23.0.tgz#6627a6c659abce968e45e897ebc038873cc83fb2" + integrity sha512-cexFQCuGcFukqyaP8p8Uf/aCuMkzJeiU4Trx7vYHf16L95aSn5TGELK0SZOugEb2Gi9D9Z6NHfuK16nWjwPSRQ== dependencies: - "@sentry/hub" "5.22.3" - "@sentry/minimal" "5.22.3" - "@sentry/types" "5.22.3" - "@sentry/utils" "5.22.3" + "@sentry/hub" "5.23.0" + "@sentry/minimal" "5.23.0" + "@sentry/types" "5.23.0" + "@sentry/utils" "5.23.0" tslib "^1.9.3" -"@sentry/types@5.22.3": - version "5.22.3" - resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.22.3.tgz#d1d547b30ee8bd7771fa893af74c4f3d71f0fd18" - integrity sha512-cv+VWK0YFgCVDvD1/HrrBWOWYG3MLuCUJRBTkV/Opdy7nkdNjhCAJQrEyMM9zX0sac8FKWKOHT0sykNh8KgmYw== +"@sentry/types@5.23.0": + version "5.23.0" + resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.23.0.tgz#935701637c2d5b1c123ac292bc253bddf451b076" + integrity sha512-PbN5MVWxrq05sZ707lc8lleV0xSsI6jWr9h9snvbAuMjcauE0lmdWmjoWKY3PAz2s1mGYFh55kIo8SmQuVwbYg== -"@sentry/utils@5.22.3": - version "5.22.3" - resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.22.3.tgz#e3bda3e789239eb16d436f768daa12829f33d18f" - integrity sha512-AHNryXMBvIkIE+GQxTlmhBXD0Ksh+5w1SwM5qi6AttH+1qjWLvV6WB4+4pvVvEoS8t5F+WaVUZPQLmCCWp6zKw== +"@sentry/utils@5.23.0": + version "5.23.0" + resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.23.0.tgz#5e15f684b5a8f9c86e4ba15d81101eac7d6c240b" + integrity sha512-D5gQDM0wEjKxhE+YNvCuCHo/6JuaORF2/3aOhoJBR+dy9EACRspg7kp3+9KF44xd2HVEXkSVCJkv8/+sHePYRQ== dependencies: - "@sentry/types" "5.22.3" + "@sentry/types" "5.23.0" tslib "^1.9.3" "@sindresorhus/is@^0.14.0": From 04f0597aeb3d02e2a74cd2fe3b33fc2158fa0b5b Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 10 Sep 2020 19:38:08 +0800 Subject: [PATCH 07/37] feat: support douban status video_card --- lib/routes/douban/people/status.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/routes/douban/people/status.js b/lib/routes/douban/people/status.js index 789e25aac..4f6c1173f 100644 --- a/lib/routes/douban/people/status.js +++ b/lib/routes/douban/people/status.js @@ -26,9 +26,10 @@ function getContentByActivity(status) { break; default: + description = `${status.text ? `${status.text}

` : ''}`; + title = `${status.author.name}${status.activity}: ${description}`; if (status.card) { let image; - description = `${status.text ? `${status.text}

` : ''}`; if (status.card.image && (status.card.image.large || status.card.image.normal)) { image = (status.card.image.large || status.card.image.normal).url; } @@ -40,6 +41,14 @@ function getContentByActivity(status) { title = `${status.author.name} ${status.activity}:「${status.card.title}」${status.text}`; } } + if (status.video_card) { + const videoCover = status.video_card.video_info && status.video_card.video_info.cover_url; + const videoSrc = status.video_card.video_info && status.video_card.video_info.video_url; + description += `${videoSrc ? `
` : ''}

${ + status.video_card.title ? `${status.video_card.title}` : '' + }`; + title = `${status.author.name}${status.activity}:《${status.video_card.title}》`; + } break; } return { title, description }; From 618a7ddde3b133f0181bc857a2b9759d09a277f6 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 10 Sep 2020 16:48:32 +0000 Subject: [PATCH 08/37] chore(deps): bump got from 11.6.1 to 11.6.2 Bumps [got](https://github.com/sindresorhus/got) from 11.6.1 to 11.6.2. - [Release notes](https://github.com/sindresorhus/got/releases) - [Commits](https://github.com/sindresorhus/got/compare/v11.6.1...v11.6.2) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 82a66d1c3..7eff03824 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "fanfou-sdk": "4.2.0", "git-rev-sync": "3.0.1", "googleapis": "59.0.0", - "got": "11.6.1", + "got": "11.6.2", "he": "1.2.0", "hooman": "1.2.6", "https-proxy-agent": "5.0.0", diff --git a/yarn.lock b/yarn.lock index e1750cfaa..f9aa6804b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5850,10 +5850,10 @@ googleapis@59.0.0: google-auth-library "^6.0.0" googleapis-common "^4.4.0" -got@11.6.1: - version "11.6.1" - resolved "https://registry.yarnpkg.com/got/-/got-11.6.1.tgz#a307122fc136c446f676f7b939d89dbc6ed6b909" - integrity sha512-6izGvOsrd/4CsIdQMgweFOTCtS4sAwJTuCzIuVoTbCDzt3+wa3eGIHhSIMgEF6gfCDenslGlMUmAdPap5DkirQ== +got@11.6.2: + version "11.6.2" + resolved "https://registry.yarnpkg.com/got/-/got-11.6.2.tgz#79d7bb8c11df212b97f25565407a1f4ae73210ec" + integrity sha512-/21qgUePCeus29Jk7MEti8cgQUNXFSWfIevNIk4H7u1wmXNDrGPKPY6YsPY+o9CIT/a2DjCjRz0x1nM9FtS2/A== dependencies: "@sindresorhus/is" "^3.1.1" "@szmarczak/http-timer" "^4.0.5" From b00e335bef8e6e4fccb43cfdb3d85ce56d867105 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2020 14:14:55 +0000 Subject: [PATCH 09/37] chore(deps): [security] bump node-fetch from 2.6.0 to 2.6.1 Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1. **This update includes a security fix.** - [Release notes](https://github.com/bitinn/node-fetch/releases) - [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md) - [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1) Signed-off-by: dependabot-preview[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index f9aa6804b..a8eac3fb0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8633,9 +8633,9 @@ nock@13.0.4: propagate "^2.0.0" node-fetch@^2.3.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd" - integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA== + version "2.6.1" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052" + integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw== node-forge@0.7.5: version "0.7.5" From 09987ff0764e4ebf3121336dde352a3ff13e9d46 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2020 18:17:54 +0000 Subject: [PATCH 10/37] chore(deps-dev): bump pretty-quick from 3.0.0 to 3.0.2 Bumps [pretty-quick](https://github.com/azz/pretty-quick) from 3.0.0 to 3.0.2. - [Release notes](https://github.com/azz/pretty-quick/releases) - [Commits](https://github.com/azz/pretty-quick/compare/v3.0.0...v3.0.2) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7eff03824..971afb9b2 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "pinyin": "2.9.1", "prettier": "2.1.1", "prettier-check": "2.0.0", - "pretty-quick": "3.0.0", + "pretty-quick": "3.0.2", "remark": "12.0.1", "remark-frontmatter": "2.0.0", "remark-pangu": "2.1.1", diff --git a/yarn.lock b/yarn.lock index a8eac3fb0..44593d248 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9931,10 +9931,10 @@ pretty-format@^26.4.2: ansi-styles "^4.0.0" react-is "^16.12.0" -pretty-quick@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-3.0.0.tgz#cba8597eca7f3821232abe6a93302d362cc30d71" - integrity sha512-oIXlGQUcUxt3XpoNfQECEWvH1Q9PtKfelF2pdp6UvC1CSQ5QcB7gUYKu0kuJGlm3LMBZzJaO/vbRkxA61pWlcg== +pretty-quick@3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-3.0.2.tgz#7ed460f7e43a647b1044ad8b7f41a0c8a7f1c51c" + integrity sha512-4rWOs/Ifdkg7G/YX7Xbco4jZkuXPx445KdhuMI6REnl3nXRDb9+zysb29c76R59jsJzcnkcpAaGi8D/RjAVfSQ== dependencies: chalk "^3.0.0" execa "^4.0.0" From 3cb02c4e179f7a6a2faa22f4dd9c715bd41eac94 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2020 18:18:45 +0000 Subject: [PATCH 11/37] chore(deps): bump puppeteer from 5.2.1 to 5.3.0 Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 5.2.1 to 5.3.0. - [Release notes](https://github.com/puppeteer/puppeteer/releases) - [Commits](https://github.com/puppeteer/puppeteer/compare/v5.2.1...v5.3.0) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 7eff03824..8e044f928 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,7 @@ "parse-torrent": "7.1.3", "pidusage": "2.0.21", "plist": "3.0.1", - "puppeteer": "5.2.1", + "puppeteer": "5.3.0", "query-string": "6.13.1", "redis": "3.0.2", "require-all": "3.0.0", diff --git a/yarn.lock b/yarn.lock index a8eac3fb0..ab9aa8b86 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4411,10 +4411,10 @@ detect-node@^2.0.4: resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.4.tgz#014ee8f8f669c5c58023da64b8179c083a28c46c" integrity sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw== -devtools-protocol@0.0.781568: - version "0.0.781568" - resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.781568.tgz#4cdca90a952d2c77831096ff6cd32695d8715a04" - integrity sha512-9Uqnzy6m6zEStluH9iyJ3iHyaQziFnMnLeC8vK0eN6smiJmIx7+yB64d67C2lH/LZra+5cGscJAJsNXO+MdPMg== +devtools-protocol@0.0.799653: + version "0.0.799653" + resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.799653.tgz#86fc95ce5bf4fdf4b77a58047ba9d2301078f119" + integrity sha512-t1CcaZbvm8pOlikqrsIM9GOa7Ipp07+4h/q9u0JXBWjPCjHdBl9KkddX87Vv9vBHoBGtwV79sYQNGnQM6iS5gg== diacritics@^1.3.0: version "1.3.0" @@ -10088,13 +10088,13 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== -puppeteer@5.2.1: - version "5.2.1" - resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-5.2.1.tgz#7f0564f0a5384f352a38c8cc42af875cd87f4ea6" - integrity sha512-PZoZG7u+T6N1GFWBQmGVG162Ak5MAy8nYSVpeeQrwJK2oYUlDWpHEJPcd/zopyuEMTv7DiztS1blgny1txR2qw== +puppeteer@5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-5.3.0.tgz#0abf83d0f2d1273baf2b56885a813f8052903e33" + integrity sha512-GjqMk5GRro3TO0sw3QMsF1H7n+/jaK2OW45qMvqjYUyJ7y4oA//9auy969HHhTG3HZXaMxY/NWXF/NXlAFIvtw== dependencies: debug "^4.1.0" - devtools-protocol "0.0.781568" + devtools-protocol "0.0.799653" extract-zip "^2.0.0" https-proxy-agent "^4.0.0" mime "^2.0.3" From 6f1dde0cd70884617e3c55560aa904a5e30f4e58 Mon Sep 17 00:00:00 2001 From: junfeng Date: Fri, 17 Jul 2020 11:10:24 +0800 Subject: [PATCH 12/37] =?UTF-8?q?feat:=20add=20router=20=E6=BC=AB=E5=B0=8F?= =?UTF-8?q?=E8=82=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. add route 2. add docs 3. add radar --- docs/anime.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/anime.md b/docs/anime.md index 4398ddcfc..8f1cde321 100644 --- a/docs/anime.md +++ b/docs/anime.md @@ -343,3 +343,9 @@ pageClass: routes ### 最新汉化 + +## 漫小肆 + +### 漫画更新 + + From b61215f4c9535ad790a2188402bbbe226279be62 Mon Sep 17 00:00:00 2001 From: junfeng Date: Sat, 12 Sep 2020 10:41:04 +0800 Subject: [PATCH 13/37] fix: manxiaosi host change --- assets/radar-rules.js | 4 ++-- lib/routes/manxiaosi/book.js | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/assets/radar-rules.js b/assets/radar-rules.js index 5f4e63625..320b6d12c 100644 --- a/assets/radar-rules.js +++ b/assets/radar-rules.js @@ -2251,9 +2251,9 @@ }, ], }, - 'manxiaosi.com': { + 'pknbc.com': { _name: '漫小肆', - '.': [ + www: [ { title: '漫画更新', docs: 'https://docs.rsshub.app/anime.html#man-xiao-si', diff --git a/lib/routes/manxiaosi/book.js b/lib/routes/manxiaosi/book.js index c801882ea..bdb1f7433 100644 --- a/lib/routes/manxiaosi/book.js +++ b/lib/routes/manxiaosi/book.js @@ -1,7 +1,6 @@ const got = require('@/utils/got'); const cheerio = require('cheerio'); -const host = 'http://www.manxiaosi.com'; -const ua = 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Mobile Safari/537.36'; +const host = 'http://www.pknbc.com'; module.exports = async (ctx) => { const id = ctx.params.id; @@ -19,15 +18,17 @@ module.exports = async (ctx) => { link: itemLink, }; const details = await ctx.cache.tryGet(itemLink, async () => { - // 具体页面限制手机UA - const response = await got.get(itemLink, { - headers: { - 'user-agent': ua, - }, - }); + const response = await got.get(itemLink); const $ = cheerio.load(response.body); + const imgs = $('div.comicpage img'); + let pics = ''; + imgs.each((_, ele) => { + const $ele = $(ele); + const src = $ele.attr('data-original'); + pics += ``; + }); return { - description: $('div#cp_img').html(), + description: `
${pics}
`, }; }); return Promise.resolve(Object.assign({}, simple, details)); From b305196893953d4740615dbe2c2da4aa7bd935c8 Mon Sep 17 00:00:00 2001 From: junfeng Date: Sat, 12 Sep 2020 10:43:59 +0800 Subject: [PATCH 14/37] fix: remove dup doc --- docs/anime.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/anime.md b/docs/anime.md index 8f1cde321..03269ede0 100644 --- a/docs/anime.md +++ b/docs/anime.md @@ -344,8 +344,3 @@ pageClass: routes -## 漫小肆 - -### 漫画更新 - - From 5092f3a44bef795476492e6cc07cc103c6ebae00 Mon Sep 17 00:00:00 2001 From: junfeng Date: Sat, 12 Sep 2020 10:44:50 +0800 Subject: [PATCH 15/37] fix: remove dup doc extra space --- docs/anime.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/anime.md b/docs/anime.md index 03269ede0..4398ddcfc 100644 --- a/docs/anime.md +++ b/docs/anime.md @@ -343,4 +343,3 @@ pageClass: routes ### 最新汉化 - From 28bc6fbd8a8be8491e7098a06b2828a4917c0b44 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sat, 12 Sep 2020 19:03:47 +0000 Subject: [PATCH 16/37] chore(deps-dev): bump eslint from 7.8.1 to 7.9.0 Bumps [eslint](https://github.com/eslint/eslint) from 7.8.1 to 7.9.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.8.1...v7.9.0) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 6e339846c..3e0462da0 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@vuepress/plugin-pwa": "1.5.4", "cross-env": "7.0.2", "entities": "2.0.3", - "eslint": "7.8.1", + "eslint": "7.9.0", "eslint-config-prettier": "6.11.0", "eslint-plugin-prettier": "3.1.4", "jest": "26.4.2", diff --git a/yarn.lock b/yarn.lock index 054d8ab4d..ccf8befc1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4920,10 +4920,10 @@ eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== -eslint@7.8.1: - version "7.8.1" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.8.1.tgz#e59de3573fb6a5be8ff526c791571646d124a8fa" - integrity sha512-/2rX2pfhyUG0y+A123d0ccXtMm7DV7sH1m3lk9nk2DZ2LReq39FXHueR9xZwshE5MdfSf0xunSaMWRqyIA6M1w== +eslint@7.9.0: + version "7.9.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.9.0.tgz#522aeccc5c3a19017cf0cb46ebfd660a79acf337" + integrity sha512-V6QyhX21+uXp4T+3nrNfI3hQNBDa/P8ga7LoQOenwrlEFXrEnUEE+ok1dMtaS3b6rmLXhT1TkTIsG75HMLbknA== dependencies: "@babel/code-frame" "^7.0.0" "@eslint/eslintrc" "^0.1.3" From 8b8e41d5058b1401f2534a8fe74bf5cc7c8c1bf4 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sun, 13 Sep 2020 15:40:41 +0000 Subject: [PATCH 17/37] chore(deps): bump query-string from 6.13.1 to 6.13.2 Bumps [query-string](https://github.com/sindresorhus/query-string) from 6.13.1 to 6.13.2. - [Release notes](https://github.com/sindresorhus/query-string/releases) - [Commits](https://github.com/sindresorhus/query-string/compare/v6.13.1...v6.13.2) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3e0462da0..96a7e003e 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "pidusage": "2.0.21", "plist": "3.0.1", "puppeteer": "5.3.0", - "query-string": "6.13.1", + "query-string": "6.13.2", "redis": "3.0.2", "require-all": "3.0.0", "rss-parser": "3.9.0", diff --git a/yarn.lock b/yarn.lock index ccf8befc1..70b9e58c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10126,10 +10126,10 @@ qs@~6.5.2: resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== -query-string@6.13.1, query-string@^6.2.0: - version "6.13.1" - resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.13.1.tgz#d913ccfce3b4b3a713989fe6d39466d92e71ccad" - integrity sha512-RfoButmcK+yCta1+FuU8REvisx1oEzhMKwhLUNcepQTPGcNMp1sIqjnfCtfnvGSQZQEhaBHvccujtWoUV3TTbA== +query-string@6.13.2, query-string@^6.2.0: + version "6.13.2" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.13.2.tgz#3585aa9412c957cbd358fd5eaca7466f05586dda" + integrity sha512-BMmDaUiLDFU1hlM38jTFcRt7HYiGP/zt1sRzrIWm5zpeEuO1rkbPS0ELI3uehoLuuhHDCS8u8lhFN3fEN4JzPQ== dependencies: decode-uri-component "^0.2.0" split-on-first "^1.0.0" From 3532000fbd5a9fb3bd964106feab786e56d33809 Mon Sep 17 00:00:00 2001 From: I2IMk <66695371+I2IMk@users.noreply.github.com> Date: Mon, 14 Sep 2020 23:43:46 +0800 Subject: [PATCH 18/37] feat: add pornhub users (#5655) --- docs/en/multimedia.md | 4 ++++ docs/multimedia.md | 4 ++++ lib/router.js | 1 + lib/routes/pornhub/users.js | 29 +++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 lib/routes/pornhub/users.js diff --git a/docs/en/multimedia.md b/docs/en/multimedia.md index c2304c013..4430883ca 100644 --- a/docs/en/multimedia.md +++ b/docs/en/multimedia.md @@ -76,6 +76,10 @@ Official RSS: https://eztv.io/ezrss.xml +### Users + + + ### Verified amateur / Model diff --git a/docs/multimedia.md b/docs/multimedia.md index 9bb9cbf04..50cb939d5 100644 --- a/docs/multimedia.md +++ b/docs/multimedia.md @@ -279,6 +279,10 @@ pageClass: routes +### 用户 + + + ### 素人(Verified amateur /model) diff --git a/lib/router.js b/lib/router.js index cd9a06d2e..3eea3fc1d 100644 --- a/lib/router.js +++ b/lib/router.js @@ -306,6 +306,7 @@ router.get('/konachan.net/post/popular_recent/:period', require('./routes/konach router.get('/pornhub/category/:caty', require('./routes/pornhub/category')); router.get('/pornhub/search/:keyword', require('./routes/pornhub/search')); router.get('/pornhub/category_url/:url?', require('./routes/pornhub/category_url')); +router.get('/pornhub/users/:username', require('./routes/pornhub/users')); router.get('/pornhub/model/:username/:sort?', require('./routes/pornhub/model')); router.get('/pornhub/pornstar/:username/:sort?', require('./routes/pornhub/pornstar')); diff --git a/lib/routes/pornhub/users.js b/lib/routes/pornhub/users.js new file mode 100644 index 000000000..7351c6ede --- /dev/null +++ b/lib/routes/pornhub/users.js @@ -0,0 +1,29 @@ +const got = require('@/utils/got'); +const cheerio = require('cheerio'); + +module.exports = async (ctx) => { + const username = ctx.params.username; + const link = `https://www.pornhub.com/users/${username}/videos`; + + const response = await got.get(link); + const $ = cheerio.load(response.data); + const list = $('.videoUList .videoBox'); + + ctx.state.data = { + title: $('title').first().text(), + link: link, + item: + list && + list + .map((_, e) => { + e = $(e); + + return { + title: e.find('span.title a').text(), + link: `https://www.pornhub.com` + e.find('span.title a').attr('href'), + description: ``, + }; + }) + .get(), + }; +}; From 2ed61206a74aec1e289ba17e5a49a8103c4d4a7d Mon Sep 17 00:00:00 2001 From: Cloud Date: Mon, 14 Sep 2020 23:55:27 +0800 Subject: [PATCH 19/37] fix: oschina (#5663) --- lib/routes/oschina/news.js | 4 ++-- lib/routes/oschina/u.js | 2 +- lib/routes/oschina/user.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/routes/oschina/news.js b/lib/routes/oschina/news.js index 32d2edff7..86b4d9efd 100644 --- a/lib/routes/oschina/news.js +++ b/lib/routes/oschina/news.js @@ -80,8 +80,8 @@ module.exports = async (ctx) => { }); const content = cheerio.load(detail.data); content('.ad-wrap').remove(); - item.description = content('#articleContent').html(); - item.author = content('a.__user').find('span').text(); + item.description = content('.article-detail').html(); + item.author = content('.article-box__meta .item').first().text(); ctx.cache.set(key, item.description); } } diff --git a/lib/routes/oschina/u.js b/lib/routes/oschina/u.js index 7f13152f6..2e3b6179e 100644 --- a/lib/routes/oschina/u.js +++ b/lib/routes/oschina/u.js @@ -42,7 +42,7 @@ module.exports = async (ctx) => { }); const content = cheerio.load(detail.data); content('#articleContent .ad-wrap').remove(); - item.description = content('#articleContent').html(); + item.description = content('.article-detail').html(); ctx.cache.set(key, item.description); } return Promise.resolve(item); diff --git a/lib/routes/oschina/user.js b/lib/routes/oschina/user.js index b685a66c4..936b4de61 100644 --- a/lib/routes/oschina/user.js +++ b/lib/routes/oschina/user.js @@ -42,7 +42,7 @@ module.exports = async (ctx) => { }); const content = cheerio.load(detail.data); content('.ad-wrap').remove(); - item.description = content('#articleContent').html(); + item.description = content('.article-detail').html(); ctx.cache.set(key, item.description); } return Promise.resolve(item); From 974da7758d0e38e4ba47bc5b60de2ad18c4249b1 Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Mon, 14 Sep 2020 23:58:11 +0800 Subject: [PATCH 20/37] =?UTF-8?q?feat:=20add=20=E6=B0=B4=E6=9C=A8=E7=A4=BE?= =?UTF-8?q?=E5=8C=BA=E5=88=86=E5=8C=BA=E6=96=87=E7=AB=A0=20(#5657)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/bbs.md | 10 ++++ lib/router.js | 1 + lib/routes/newsmth/section.js | 100 ++++++++++++++++++++++++++++++++++ 3 files changed, 111 insertions(+) create mode 100644 lib/routes/newsmth/section.js diff --git a/docs/bbs.md b/docs/bbs.md index 9458bd32c..b5b18dc87 100644 --- a/docs/bbs.md +++ b/docs/bbs.md @@ -357,6 +357,16 @@ pageClass: routes ## 水木社区 +### 分区文章 + + + +| 社区管理 | 国内院校 | 休闲娱乐 | 五湖四海 | 游戏运动 | 社会信息 | 知性感性 | 文化人文 | 学术科学 | 电脑技术 | +| --------- | ---------- | ------------- | -------- | -------- | -------- | -------- | -------- | -------- | ---------- | +| community | university | entertainment | location | game | society | romance | culture | science | technology | + + + ### 用户文章 diff --git a/lib/router.js b/lib/router.js index 3eea3fc1d..b3f196f86 100644 --- a/lib/router.js +++ b/lib/router.js @@ -3096,6 +3096,7 @@ router.get('/telecompaper/news/:caty/:year?/:country?/:type?/:keyword?', require // 水木社区 router.get('/newsmth/account/:id', require('./routes/newsmth/account')); +router.get('/newsmth/section/:section', require('./routes/newsmth/section')); // Kotaku router.get('/kotaku/story/:type', require('./routes/kotaku/story')); diff --git a/lib/routes/newsmth/section.js b/lib/routes/newsmth/section.js new file mode 100644 index 000000000..bf72265c4 --- /dev/null +++ b/lib/routes/newsmth/section.js @@ -0,0 +1,100 @@ +const got = require('@/utils/got'); +const cheerio = require('cheerio'); +const date = require('@/utils/date'); + +const config = { + community: { + link: '/section/7fba65e45f678eb8c605d4107de04185', + title: '社区管理', + }, + university: { + link: '/section/4fcab28694a0be93d9297d8cede052d9', + title: '国内院校', + }, + entertainment: { + link: '/section/3497e48bb537373d0f738b41fe53a41b', + title: '休闲娱乐', + }, + location: { + link: '/section/353fdfda1dfe7a714e592bab99c762cd', + title: '五湖四海', + }, + game: { + link: '/section/c8d614e56acb8a192ec4af8b375a5eea', + title: '游戏运动', + }, + society: { + link: '/section/5b634fdc9ecddf6042561c959176c077', + title: '社会信息', + }, + romance: { + link: '/section/1c455a5dccf4242008d188f9676e3f4e', + title: '知性感性', + }, + culture: { + link: '/section/12af235486fde6684e4b9e83f5d2b779', + title: '文化人文', + }, + science: { + link: '/section/4ed7f0d8b621c8ccf9e11eca9991d6dc', + title: '学术科学', + }, + technology: { + link: '/section/4dda79c64b3ffb61f8048d745292ff5d', + title: '电脑技术', + }, +}; + +module.exports = async (ctx) => { + const cfg = config[ctx.params.section]; + if (!cfg) { + throw Error('Bad section. See docs'); + } + + const rootUrl = `https://exp.newsmth.net/statistics/hot`; + const currentUrl = `${rootUrl}${cfg.link}`; + + const response = await got({ + method: 'get', + url: currentUrl, + }); + const $ = cheerio.load(response.data); + + const list = $('ul.article-list li') + .slice(0, 15) + .map((_, item) => { + item = $(item); + const a = item.find('a.article-subject'); + const pubDate = date(item.find('div.article-account-name span').text()); + + return { + title: a.text(), + link: `https://exp.newsmth.net${a.attr('href')}`, + pubDate: pubDate, + }; + }) + .get(); + + const items = await Promise.all( + list.map( + async (item) => + await ctx.cache.tryGet(item.link, async () => { + const detailResponse = await got({ + method: 'get', + url: item.link, + }); + const content = cheerio.load(detailResponse.data); + + item.description = content('div.show-content').html(); + + return item; + }) + ) + ); + + ctx.state.data = { + title: cfg.title + ' - 水木社区', + link: currentUrl, + item: items, + }; +}; From c91fe0d3107db13ead38dff127daf82ad3de2ed2 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2020 23:13:23 +0000 Subject: [PATCH 21/37] chore(deps): bump markdown-it from 11.0.0 to 11.0.1 Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 11.0.0 to 11.0.1. - [Release notes](https://github.com/markdown-it/markdown-it/releases) - [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md) - [Commits](https://github.com/markdown-it/markdown-it/compare/11.0.0...11.0.1) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 96a7e003e..fef42426a 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "lru-cache": "6.0.0", "lz-string": "1.4.4", "mailparser": "3.0.0", - "markdown-it": "11.0.0", + "markdown-it": "11.0.1", "module-alias": "2.2.2", "parse-torrent": "7.1.3", "pidusage": "2.0.21", diff --git a/yarn.lock b/yarn.lock index 70b9e58c9..615e86fe3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8173,10 +8173,10 @@ markdown-it-table-of-contents@^0.4.0: resolved "https://registry.yarnpkg.com/markdown-it-table-of-contents/-/markdown-it-table-of-contents-0.4.4.tgz#3dc7ce8b8fc17e5981c77cc398d1782319f37fbc" integrity sha512-TAIHTHPwa9+ltKvKPWulm/beozQU41Ab+FIefRaQV1NRnpzwcV9QOe6wXQS5WLivm5Q/nlo0rl6laGkMDZE7Gw== -markdown-it@11.0.0: - version "11.0.0" - resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-11.0.0.tgz#dbfc30363e43d756ebc52c38586b91b90046b876" - integrity sha512-+CvOnmbSubmQFSA9dKz1BRiaSMV7rhexl3sngKqFyXSagoA3fBdJQ8oZWtRy2knXdpDXaBw44euz37DeJQ9asg== +markdown-it@11.0.1: + version "11.0.1" + resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-11.0.1.tgz#b54f15ec2a2193efa66dda1eb4173baea08993d6" + integrity sha512-aU1TzmBKcWNNYvH9pjq6u92BML+Hz3h5S/QpfTFwiQF852pLT+9qHsrhM9JYipkOXZxGn+sGH8oyJE9FD9WezQ== dependencies: argparse "^1.0.7" entities "~2.0.0" From 459b54b7522c2c84d0d9eb33c2f695fc572a46ee Mon Sep 17 00:00:00 2001 From: SettingDust Date: Thu, 17 Sep 2020 13:25:04 +0800 Subject: [PATCH 22/37] Fix DLU sort (#5631) --- lib/routes/universities/dlu/jiaowu/news.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/routes/universities/dlu/jiaowu/news.js b/lib/routes/universities/dlu/jiaowu/news.js index 109ffed9d..6f206d5a8 100644 --- a/lib/routes/universities/dlu/jiaowu/news.js +++ b/lib/routes/universities/dlu/jiaowu/news.js @@ -27,16 +27,19 @@ module.exports = async (ctx) => { const $ = cheerio.load(iconv.decode(response.data, 'utf-8')); + const regex = /(\d+)\.htm/; + ctx.state.data = { link: base_url, title: '大连大学教务处', item: $('td[valign="top"]>table[cellspacing="3"][width="100%"] tr') - .slice(0, 10) .map((_, elem) => ({ link: resolve_url(base_url, $('a', elem).attr('href')), title: $('a', elem).attr('title'), pubDate: new Date(new Date().getFullYear() + '-' + $('[class*="timestyle"]', elem).text().replace('/', '-')).toUTCString(), })) - .get(), + .get() + .sort((one, two) => two.link.match(regex)[1] - one.link.match(regex)[1]) + .slice(0, 20), }; }; From 5abbc78a2bacefa511350b6fc8c9f160059f3450 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2020 17:20:17 +0000 Subject: [PATCH 23/37] chore(deps): bump dayjs from 1.8.35 to 1.8.36 Bumps [dayjs](https://github.com/iamkun/dayjs) from 1.8.35 to 1.8.36. - [Release notes](https://github.com/iamkun/dayjs/releases) - [Changelog](https://github.com/iamkun/dayjs/blob/v1.8.36/CHANGELOG.md) - [Commits](https://github.com/iamkun/dayjs/compare/v1.8.35...v1.8.36) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index fef42426a..9f7159e6f 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "co-redis": "2.1.1", "crypto-js": "4.0.0", "currency-symbol-map": "4.0.4", - "dayjs": "1.8.35", + "dayjs": "1.8.36", "dotenv": "8.2.0", "emailjs-imap-client": "3.1.0", "etag": "1.8.1", diff --git a/yarn.lock b/yarn.lock index 615e86fe3..685285e68 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4182,10 +4182,10 @@ date-now@^0.1.4: resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs= -dayjs@1.8.35, dayjs@^1.8.29: - version "1.8.35" - resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.8.35.tgz#67118378f15d31623f3ee2992f5244b887606888" - integrity sha512-isAbIEenO4ilm6f8cpqvgjZCsuerDAz2Kb7ri201AiNn58aqXuaLJEnCtfIMdCvERZHNGRY5lDMTr/jdAnKSWQ== +dayjs@1.8.36, dayjs@^1.8.29: + version "1.8.36" + resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.8.36.tgz#be36e248467afabf8f5a86bae0de0cdceecced50" + integrity sha512-3VmRXEtw7RZKAf+4Tv1Ym9AGeo8r8+CjDi26x+7SYQil1UqtqdaokhzoEJohqlzt0m5kacJSDhJQkG/LWhpRBw== de-indent@^1.0.2: version "1.0.2" From 550f25a2d4fc5fcab06f4dd1fb26a1a2d4409e20 Mon Sep 17 00:00:00 2001 From: Quan Date: Fri, 18 Sep 2020 12:09:57 +0800 Subject: [PATCH 24/37] =?UTF-8?q?fix:=20ssmh=20=E5=9B=BE=E7=89=87=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E8=8E=B7=E5=8F=96=E9=94=99=E8=AF=AF=20(#5681)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Quan666 --- lib/routes/ssmh/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/ssmh/index.js b/lib/routes/ssmh/index.js index f25558ad9..2cb922d69 100644 --- a/lib/routes/ssmh/index.js +++ b/lib/routes/ssmh/index.js @@ -19,7 +19,7 @@ module.exports = async (ctx) => { item: list .map((index, item) => { item = $(item); - thumbnail_url = 'https://wnacg.org' + `${item.find('a > img').attr('src')}`; + thumbnail_url = 'https:' + `${item.find('a > img').attr('data-original')}`; link_url = 'https://wnacg.org' + `${item.find('a').attr('href')}`; return { title: item.find('a').attr('title'), From d0ad9400bbbb1ed5c5da0928dd7c383f269d3260 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 18 Sep 2020 16:22:11 +0000 Subject: [PATCH 25/37] chore(deps): bump @sentry/node from 5.23.0 to 5.24.2 Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 5.23.0 to 5.24.2. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/5.23.0...5.24.2) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 92 ++++++++++++++++++++++++++-------------------------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/package.json b/package.json index 9f7159e6f..10e862acc 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "dependencies": { "@koa/router": "9.4.0", "@postlight/mercury-parser": "2.2.0", - "@sentry/node": "5.23.0", + "@sentry/node": "5.24.2", "aes-js": "3.1.2", "art-template": "4.13.2", "cheerio": "1.0.0-rc.3", diff --git a/yarn.lock b/yarn.lock index 685285e68..543c44ef0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1345,72 +1345,72 @@ dependencies: safe-buffer "^5.0.1" -"@sentry/core@5.23.0": - version "5.23.0" - resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.23.0.tgz#4d12ee4f5593e66fa5ffde0f9e9164a5468e5cec" - integrity sha512-K8Wp/g1opaauKJh2w5Z1Vw/YdudHQgH6Ng5fBazHZxA7zB9R8EbVKDsjy8XEcyHsWB7fTSlYX/7coqmZNOADdg== +"@sentry/core@5.24.2": + version "5.24.2" + resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.24.2.tgz#1724652855c0887a690c3fc6acd2519d4072b511" + integrity sha512-nuAwCGU1l9hgMinl5P/8nIQGRXDP2FI9cJnq5h1qiP/XIOvJkJz2yzBR6nTyqr4vBth0tvxQJbIpDNGd7vHJLg== dependencies: - "@sentry/hub" "5.23.0" - "@sentry/minimal" "5.23.0" - "@sentry/types" "5.23.0" - "@sentry/utils" "5.23.0" + "@sentry/hub" "5.24.2" + "@sentry/minimal" "5.24.2" + "@sentry/types" "5.24.2" + "@sentry/utils" "5.24.2" tslib "^1.9.3" -"@sentry/hub@5.23.0": - version "5.23.0" - resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.23.0.tgz#7350c2971fafdb9f883f0629fd1b35d2288cd6e1" - integrity sha512-P0sevLI9qAQc1J+AcHzNXwj83aG3GKiABVQJp0rgCUMtrXqLawa+j8pOHg8p7QWroHM7TKDMKeny9WemXBgzBQ== +"@sentry/hub@5.24.2": + version "5.24.2" + resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.24.2.tgz#64a02fd487599945e488ae23aba4ce4df44ee79e" + integrity sha512-xmO1Ivvpb5Qr9WgekinuZZlpl9Iw7iPETUe84HQOhUrXf+2gKO+LaUYMMsYSVDwXQEmR6/tTMyOtS6iavldC6w== dependencies: - "@sentry/types" "5.23.0" - "@sentry/utils" "5.23.0" + "@sentry/types" "5.24.2" + "@sentry/utils" "5.24.2" tslib "^1.9.3" -"@sentry/minimal@5.23.0": - version "5.23.0" - resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.23.0.tgz#93df781a98f0b334425f68b1fa0f4e1a86d8fa45" - integrity sha512-/w/B7ShMVu/tLI0/A5X+w6GfdZIQdFQihWyIK1vXaYS5NS6biGI3K6DcACuMrD/h4BsqlfgdXSOHHrmCJcyCXQ== +"@sentry/minimal@5.24.2": + version "5.24.2" + resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.24.2.tgz#14e8b136842398a32987459f0574359b6dc57a1f" + integrity sha512-biFpux5bI3R8xiD/Zzvrk1kRE6bqPtfWXmZYAHRtaUMCAibprTKSY9Ta8QYHynOAEoJ5Akedy6HUsEkK5DoZfA== dependencies: - "@sentry/hub" "5.23.0" - "@sentry/types" "5.23.0" + "@sentry/hub" "5.24.2" + "@sentry/types" "5.24.2" tslib "^1.9.3" -"@sentry/node@5.23.0": - version "5.23.0" - resolved "https://registry.yarnpkg.com/@sentry/node/-/node-5.23.0.tgz#c5deb3e4842abacbd40ffaf296971e47df2f6e6c" - integrity sha512-WFiAI9+XALB144LRYsWt4aM6soxMRAp1SQ72H0LNOYQXyei5hnKXLmL8UH5RHJFD60Y8S42tIhZkdPPXSq7HgQ== +"@sentry/node@5.24.2": + version "5.24.2" + resolved "https://registry.yarnpkg.com/@sentry/node/-/node-5.24.2.tgz#6e06bf26f1e0b23e122a14f17aa57671d3428c4d" + integrity sha512-ddfU2tLTvhnY+NqzLIA/gxMt/uxq7R204Nb2J5qqE0WAgbh0dtylNAzfKZTizLdbZfRnpeISmd+CBILh3tavog== dependencies: - "@sentry/core" "5.23.0" - "@sentry/hub" "5.23.0" - "@sentry/tracing" "5.23.0" - "@sentry/types" "5.23.0" - "@sentry/utils" "5.23.0" + "@sentry/core" "5.24.2" + "@sentry/hub" "5.24.2" + "@sentry/tracing" "5.24.2" + "@sentry/types" "5.24.2" + "@sentry/utils" "5.24.2" cookie "^0.4.1" https-proxy-agent "^5.0.0" lru_map "^0.3.3" tslib "^1.9.3" -"@sentry/tracing@5.23.0": - version "5.23.0" - resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-5.23.0.tgz#6627a6c659abce968e45e897ebc038873cc83fb2" - integrity sha512-cexFQCuGcFukqyaP8p8Uf/aCuMkzJeiU4Trx7vYHf16L95aSn5TGELK0SZOugEb2Gi9D9Z6NHfuK16nWjwPSRQ== +"@sentry/tracing@5.24.2": + version "5.24.2" + resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-5.24.2.tgz#a36b4f9bf699c5e07e99a148360091c8e727c51f" + integrity sha512-1uDgvGGVF8lb3hRXbhNnns+8DBUKjhRKOFR5Z3RExjrDFYTDbHmoNtV73Q12Ra+Iht9HTZnIBOqYD3oSZIbJ0w== dependencies: - "@sentry/hub" "5.23.0" - "@sentry/minimal" "5.23.0" - "@sentry/types" "5.23.0" - "@sentry/utils" "5.23.0" + "@sentry/hub" "5.24.2" + "@sentry/minimal" "5.24.2" + "@sentry/types" "5.24.2" + "@sentry/utils" "5.24.2" tslib "^1.9.3" -"@sentry/types@5.23.0": - version "5.23.0" - resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.23.0.tgz#935701637c2d5b1c123ac292bc253bddf451b076" - integrity sha512-PbN5MVWxrq05sZ707lc8lleV0xSsI6jWr9h9snvbAuMjcauE0lmdWmjoWKY3PAz2s1mGYFh55kIo8SmQuVwbYg== +"@sentry/types@5.24.2": + version "5.24.2" + resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.24.2.tgz#e2c25d1e75d8dbec5dbbd9a309a321425b61c2ca" + integrity sha512-HcOK00R0tQG5vzrIrqQ0jC28+z76jWSgQCzXiessJ5SH/9uc6NzdO7sR7K8vqMP2+nweCHckFohC8G0T1DLzuQ== -"@sentry/utils@5.23.0": - version "5.23.0" - resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.23.0.tgz#5e15f684b5a8f9c86e4ba15d81101eac7d6c240b" - integrity sha512-D5gQDM0wEjKxhE+YNvCuCHo/6JuaORF2/3aOhoJBR+dy9EACRspg7kp3+9KF44xd2HVEXkSVCJkv8/+sHePYRQ== +"@sentry/utils@5.24.2": + version "5.24.2" + resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.24.2.tgz#90b7dff939bbbf4bb8edcac6aac2d04a0552af80" + integrity sha512-oPGde4tNEDHKk0Cg9q2p0qX649jLDUOwzJXHKpd0X65w3A6eJByDevMr8CSzKV9sesjrUpxqAv6f9WWlz185tA== dependencies: - "@sentry/types" "5.23.0" + "@sentry/types" "5.24.2" tslib "^1.9.3" "@sindresorhus/is@^0.14.0": From 55d2acfbd853108f572e5342e32abe5c3298ee51 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2020 15:41:47 +0000 Subject: [PATCH 26/37] chore(deps): bump got from 11.6.2 to 11.7.0 Bumps [got](https://github.com/sindresorhus/got) from 11.6.2 to 11.7.0. - [Release notes](https://github.com/sindresorhus/got/releases) - [Commits](https://github.com/sindresorhus/got/compare/v11.6.2...v11.7.0) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 10e862acc..a3cb6cb02 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "fanfou-sdk": "4.2.0", "git-rev-sync": "3.0.1", "googleapis": "59.0.0", - "got": "11.6.2", + "got": "11.7.0", "he": "1.2.0", "hooman": "1.2.6", "https-proxy-agent": "5.0.0", diff --git a/yarn.lock b/yarn.lock index 543c44ef0..3c88c00ba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5850,10 +5850,10 @@ googleapis@59.0.0: google-auth-library "^6.0.0" googleapis-common "^4.4.0" -got@11.6.2: - version "11.6.2" - resolved "https://registry.yarnpkg.com/got/-/got-11.6.2.tgz#79d7bb8c11df212b97f25565407a1f4ae73210ec" - integrity sha512-/21qgUePCeus29Jk7MEti8cgQUNXFSWfIevNIk4H7u1wmXNDrGPKPY6YsPY+o9CIT/a2DjCjRz0x1nM9FtS2/A== +got@11.7.0: + version "11.7.0" + resolved "https://registry.yarnpkg.com/got/-/got-11.7.0.tgz#a386360305571a74548872e674932b4ef70d3b24" + integrity sha512-7en2XwH2MEqOsrK0xaKhbWibBoZqy+f1RSUoIeF1BLcnf+pyQdDsljWMfmOh+QKJwuvDIiKx38GtPh5wFdGGjg== dependencies: "@sindresorhus/is" "^3.1.1" "@szmarczak/http-timer" "^4.0.5" From f41c4c15e0bc6423a4d3e029f715206192440c6b Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Mon, 21 Sep 2020 03:54:56 +0800 Subject: [PATCH 27/37] feat: add appsales (#5683) --- docs/en/shopping.md | 26 ++++++++++++++ docs/shopping.md | 26 ++++++++++++++ lib/router.js | 3 ++ lib/routes/appsales/index.js | 66 ++++++++++++++++++++++++++++++++++++ 4 files changed, 121 insertions(+) create mode 100644 lib/routes/appsales/index.js diff --git a/docs/en/shopping.md b/docs/en/shopping.md index ac409701b..e3f36ab0e 100644 --- a/docs/en/shopping.md +++ b/docs/en/shopping.md @@ -10,6 +10,32 @@ pageClass: routes +## AppSales + +### Apps + + + +Category + +| Highlights | Active Sales | Now Free | Watchlist Charts | +| ---------- | ------------ | -------- | ---------------- | +| highlights | activesales | nowfree | mostwanted | + +Time + +| the latest 24 hours | the latest week | all the time | +| ------------------- | --------------- | ------------ | +| 24h | week | alltime | + +::: tip Tip + +Parameter `time` only works when `mostwanted` is chosen as the category. + +::: + + + ## Guiltfree.pl ### Onsale diff --git a/docs/shopping.md b/docs/shopping.md index 1a9403887..5305f8201 100644 --- a/docs/shopping.md +++ b/docs/shopping.md @@ -10,6 +10,32 @@ pageClass: routes +## AppSales + +### Apps + + + +分类 + +| Highlights | Active Sales | Now Free | Watchlist Charts | +| ---------- | ------------ | -------- | ---------------- | +| highlights | activesales | nowfree | mostwanted | + +时间 + +| 最近一天 | 最近一周 | 所有时间 | +| -------- | -------- | -------- | +| 24h | week | alltime | + +::: tip 提示 + +参数 `time` 仅在选择 `mostwanted` 作为分类的时候有效。 + +::: + + + ## Furstar ### 最新售卖角色列表 diff --git a/lib/router.js b/lib/router.js index b3f196f86..65efbd86b 100644 --- a/lib/router.js +++ b/lib/router.js @@ -3208,4 +3208,7 @@ router.get('/feixuew/:id?', require('./routes/feixuew/index')); // 1X router.get('/1x/:type?/:caty?', require('./routes/1x/index')); +// AppSales +router.get('/appsales/:caty?/:time?', require('./routes/appsales/index')); + module.exports = router; diff --git a/lib/routes/appsales/index.js b/lib/routes/appsales/index.js new file mode 100644 index 000000000..403b1a85c --- /dev/null +++ b/lib/routes/appsales/index.js @@ -0,0 +1,66 @@ +const got = require('@/utils/got'); +const cheerio = require('cheerio'); + +module.exports = async (ctx) => { + ctx.params.caty = ctx.params.caty || 'highlights'; + ctx.params.time = ctx.params.time || '24h'; + + const times = ['24h', 'week', 'alltime']; + const rootUrl = `https://www.app-sales.net/${ctx.params.caty}/#!`; + const response = await got({ + method: 'get', + url: rootUrl, + }); + + const $ = cheerio.load(response.data); + + if (ctx.params.caty === 'mostwanted') { + times.forEach((i) => { + if (i !== ctx.params.time) { + $(`#charts-${i}`).remove(); + } + }); + } + + $('i,img.play-icon-small').remove(); + + const items = $('div.sale-list-item') + .map((_, item) => { + item = $(item); + + const icon = item.find('div.app-icon').html(); + const name = item.find('p.app-name').text(); + const developer = item.find('p.app-dev').text(); + const oldPrice = item.find('div.price-old').text(); + const newPrice = item.find('div.price-new').text(); + const discount = item.find('div.price-disco').text(); + const rating = item.find('p.rating').text(); + const downloads = item.find('p.downloads').text(); + const bookmarks = item.find('p.bookmarks').text(); + + const description = + `${icon}

${name}

` + + `` + + `` + + (rating ? `` : '') + + (downloads ? `` : '') + + (discount ? `` : '') + + (oldPrice ? `` : '') + + (newPrice ? `` : '') + + '
Developer ${developer}
Bookmarks ${bookmarks}
Rating ${rating}
Downloads ${downloads}
Discount ${discount}
Old Price ${oldPrice}
New Price ${newPrice}
'; + + return { + title: `${name} ${newPrice ? '[' + newPrice + ']' : ''}`, + link: item.find('a.waves-effect').attr('href'), + description, + author: developer, + }; + }) + .get(); + + ctx.state.data = { + title: $('title').text(), + link: rootUrl, + item: items, + }; +}; From b7b527df2b76d9019725ad94310f3caf6ad02f3e Mon Sep 17 00:00:00 2001 From: simoin Date: Mon, 21 Sep 2020 03:58:33 +0800 Subject: [PATCH 28/37] fix: gcores image is broken (#5633) fix: image undefined --- lib/routes/gcores/category.js | 81 +++++++++++++++++++++++------------ 1 file changed, 53 insertions(+), 28 deletions(-) diff --git a/lib/routes/gcores/category.js b/lib/routes/gcores/category.js index de144f3d1..ee0e0169f 100644 --- a/lib/routes/gcores/category.js +++ b/lib/routes/gcores/category.js @@ -9,45 +9,70 @@ module.exports = async (ctx) => { url: url, }); const data = res.data; - let $ = cheerio.load(data); - const list = $('.original.am_card.original-normal'); - const count = []; + const $ = cheerio.load(data); const feedTitle = $('title').text(); - for (let i = 0; i < Math.min(list.length, 10); i++) { - count.push(i); - } + const list = $('.original.am_card.original-normal') + .map(function () { + const item = { + url: $(this).find('a.am_card_content.original_content').attr('href'), + title: $(this).find('h3.am_card_title').text(), + }; + return item; + }) + .get(); + const out = await Promise.all( - count.map(async (i) => { - const item = list[i]; - let itemUrl = $(item).find('a.am_card_content.original_content').attr('href'); - itemUrl = 'https://www.gcores.com' + itemUrl; - const cache = await ctx.cache.get(itemUrl); + list.map(async (item) => { + const articleUrl = `https://www.gcores.com${item.url}`; + + const cache = await ctx.cache.get(articleUrl); if (cache) { return Promise.resolve(JSON.parse(cache)); } - const title = $(item).find('h3.am_card_title').text(); - let itemRes; - try { - itemRes = await got({ - method: 'get', - url: itemUrl, - }); - } catch (e) { - return Promise.resolve(); - } - const itemPage = itemRes.data; - $ = cheerio.load(itemPage); + const itemRes = await got({ + method: 'get', + url: articleUrl, + }); + + const itemPage = itemRes.data; + const $ = cheerio.load(itemPage); + + let articleData = await got(`https://www.gcores.com/gapi/v1${item.url}?include=media`); + articleData = articleData.data.data; + let cover; + if (articleData.attributes.cover) { + cover = ``; + } else if (articleData.attributes.thumb) { + cover = ``; + } else { + cover = ''; + } + + // replace figure with img + const articleContent = JSON.parse(articleData.attributes.content); + const imgs = Object.values(articleContent.entityMap) + .filter((e) => e.type === 'IMAGE') + .map((e) => e.data.path); + $('figure').each((i, elem) => { + if (imgs[i]) { + $(elem).replaceWith($(``)); + } + }); + + // remove editor toolbar img + $('.md-editor-toolbar').replaceWith(''); + // remove hidden tip block + $('.story_hidden').replaceWith(''); - const cover = $('img.newsPage_cover'); const content = $('.story.story-show').html(); const single = { - title: title, + title: item.title, description: cover + content, - link: itemUrl, - guid: itemUrl, + link: articleUrl, + guid: articleUrl, }; - ctx.cache.set(itemUrl, JSON.stringify(single)); + ctx.cache.set(articleUrl, JSON.stringify(single)); return Promise.resolve(single); }) ); From fc66b8a85d7ce813e2c3380be587926805f45df1 Mon Sep 17 00:00:00 2001 From: Ethan Shen Date: Mon, 21 Sep 2020 03:59:33 +0800 Subject: [PATCH 29/37] fix: update links to dytt (#5562) --- lib/routes/dytt/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/dytt/index.js b/lib/routes/dytt/index.js index 43e284899..8266c0619 100644 --- a/lib/routes/dytt/index.js +++ b/lib/routes/dytt/index.js @@ -1,7 +1,7 @@ const got = require('@/utils/got'); const cheerio = require('cheerio'); const iconv = require('iconv-lite'); -const baseURL = 'https://www.ygdy8.net'; +const baseURL = 'https://www.ygdy8.net/index.html'; async function load(link, ctx) { const cache = await ctx.cache.get(link); if (cache) { @@ -33,9 +33,9 @@ module.exports = async (ctx) => { list.splice(0, 1); // const list = $('.co_content8 table tr:not(:first-child)').get(); const process = await Promise.all( - list.map(async (item) => { + list.slice(0, 20).map(async (item) => { const link = $(item).find('a:nth-of-type(2)'); - const itemUrl = baseURL + link.attr('href'); + const itemUrl = 'https://www.ygdy8.net' + link.attr('href'); const other = await load(itemUrl, ctx); return { From 221d8139fac8aba114742f56c0c7266c98d993fa Mon Sep 17 00:00:00 2001 From: simoin Date: Mon, 21 Sep 2020 04:00:08 +0800 Subject: [PATCH 30/37] fix: /twitter/list is broken (#5630) --- lib/routes/twitter/list.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/lib/routes/twitter/list.js b/lib/routes/twitter/list.js index 6a319386c..d7a1dd67c 100644 --- a/lib/routes/twitter/list.js +++ b/lib/routes/twitter/list.js @@ -6,9 +6,24 @@ module.exports = async (ctx) => { throw 'Twitter RSS is disabled due to the lack of relevant config'; } const { id, name } = ctx.params; + + const list_data = await ctx.cache.tryGet(`${id}_lists`, async () => { + const result = await utils.getTwit().get('lists/list', { + screen_name: id, + }); + + const cached_lists = {}; + result.data.forEach((e) => { + cached_lists[e.name] = { id: e.id_str, slug: e.slug }; + }); + + return cached_lists; + }); + const cur_list = list_data[name]; + const result = await utils.getTwit().get('lists/statuses', { - owner_screen_name: id, - slug: name, + list_id: cur_list.id, + slug: cur_list.slug, tweet_mode: 'extended', }); const data = result.data; From bccc5ebc22e40ca6280ba7b50236d12f9cd57a6d Mon Sep 17 00:00:00 2001 From: MisteryMonster <40703811+MisteryMonster@users.noreply.github.com> Date: Mon, 21 Sep 2020 04:01:59 +0800 Subject: [PATCH 31/37] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=85=AC=E4=BC=97=E5=8F=B7=E6=96=87=E7=AB=A0=E8=AF=9D?= =?UTF-8?q?=E9=A2=98=20Tag=20(#5639)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/radar-rules.js | 6 +++ docs/new-media.md | 8 ++++ lib/router.js | 1 + lib/routes/tencent/wechat/msgalbum.js | 59 +++++++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 lib/routes/tencent/wechat/msgalbum.js diff --git a/assets/radar-rules.js b/assets/radar-rules.js index 5f4e63625..0151eb2f5 100644 --- a/assets/radar-rules.js +++ b/assets/radar-rules.js @@ -1829,6 +1829,12 @@ source: '/mp/homepage', target: (params, url) => `/wechat/mp/homepage/${new URL(url).searchParams.get('__biz')}/${new URL(url).searchParams.get('hid')}/${new URL(url).searchParams.get('cid') ? new URL(url).searchParams.get('cid') : ''}`, }, + { + title: '微信公众号话题', + docs: 'https://docs.rsshub.app/new-media.html#wei-xin-gong-zhong-hao-wen-zhang-hua-ti-tag', + source: '/mp/appmsgalbum', + target: (params, url) => `/wechat/mp/msgalbum/${new URL(url).searchParams.get('__biz')}/${new URL(url).searchParams.get('album_id')}`, + }, ], egame: [ { diff --git a/docs/new-media.md b/docs/new-media.md index eca437d3a..57dd59424 100644 --- a/docs/new-media.md +++ b/docs/new-media.md @@ -1271,6 +1271,14 @@ area 分区选项
+### 公众号文章话题 Tag + + + +一些公众号(如看理想)会在微信文章里添加 Tag ,点入 Tag 的链接如 ,其中`biz` 为 `MzA3MDM3NjE5NQ==`,`aid` 为 `1375870284640911361`。 + + + ### 公众平台系统公告栏目 diff --git a/lib/router.js b/lib/router.js index 65efbd86b..1232c5129 100644 --- a/lib/router.js +++ b/lib/router.js @@ -502,6 +502,7 @@ router.get('/wechat/uread/:userid', require('./routes/tencent/wechat/uread')); router.get('/wechat/ershicimi/:id', require('./routes/tencent/wechat/ershcimi')); router.get('/wechat/wjdn/:id', require('./routes/tencent/wechat/wjdn')); router.get('/wechat/mp/homepage/:biz/:hid/:cid?', require('./routes/tencent/wechat/mp')); +router.get('/wechat/mp/msgalbum/:biz/:aid', require('./routes/tencent/wechat/msgalbum')); // All the Flight Deals router.get('/atfd/:locations/:nearby?', require('./routes/atfd/index')); diff --git a/lib/routes/tencent/wechat/msgalbum.js b/lib/routes/tencent/wechat/msgalbum.js new file mode 100644 index 000000000..4bc711c17 --- /dev/null +++ b/lib/routes/tencent/wechat/msgalbum.js @@ -0,0 +1,59 @@ +const got = require('@/utils/got'); +const cheerio = require('cheerio'); +const dayjs = require('dayjs'); +module.exports = async (ctx) => { + const { biz, aid } = ctx.params; + const aidurl = `&album_id=${aid}`; + + const HTMLresponse = await got({ + method: 'get', + url: `https://mp.weixin.qq.com/mp/appmsgalbum?__biz=${biz}&action=getalbum${aidurl}`, + }); + const $ = cheerio.load(HTMLresponse.data); + const list = $('li').get(); + const mptitle = $('.album__author-name').text() + `|` + $('.album__label-title').text(); + const articledata = await Promise.all( + list.map(async (item) => { + const link = $(item).attr('data-link').replace('http://', 'https://'); + const title = $(item).attr('data-title'); + const cache = await ctx.cache.get(link); + if (cache) { + return Promise.resolve(JSON.parse(cache)); + } + const response2 = await got({ + method: 'get', + url: link, + }); + const articleHtml = response2.data; + const $2 = cheerio.load(articleHtml); + $2('img').removeAttr('src'); + $2('div#js_profile_qrcode').remove(); + + const content = $2('div#js_content.rich_media_content') + .html() + .replace('iframe/preview.html?width=500&height=375&', 'txp/iframe/player.html?') + .replace('