Conversation
|
test |
|
Successfully generated as following: http://localhost:1200/projectjav/actress/ibuki-aoi-20076 - Failed ❌http://localhost:1200/projectjav/actress/rima-arai-22198/ - Failed ❌ |
Auto ReviewNo clear rule violations found in the current diff. |
Maybe Github IPs are blocked? This has been working for months for me. |
TonyRL
left a comment
There was a problem hiding this comment.
Please fix all the lint issues as well
lib/routes/projectjav/actress.ts
Outdated
| import { rootUrl, processItems } from './utils'; | ||
|
|
||
| export const route: Route = { | ||
| path: ['/actress/:id', '/actress/:id/'], |
lib/routes/projectjav/actress.ts
Outdated
| async function handler(ctx) { | ||
| const id = ctx.req.param('id'); | ||
| const currentUrl = `${rootUrl}/actress/${id}`; | ||
| return await processItems(currentUrl, cache.tryGet); |
There was a problem hiding this comment.
The whole cache.tryGet function can be imported directly. No need to pass it as parameter.
|
Successfully generated as following: http://localhost:1200/projectjav/actress/ibuki-aoi-20076 - Failed ❌http://localhost:1200/projectjav/actress/rima-arai-22198/ - Failed ❌ |
|
Successfully generated as following: http://localhost:1200/projectjav/actress/ibuki-aoi-20076 - Failed ❌http://localhost:1200/projectjav/actress/rima-arai-22198/ - Failed ❌ |
|
After removing the second route it didn't work when using a trailing slash, so I added some logic to allow it. |
Auto ReviewNo clear rule violations found in the current diff. |
TonyRL
left a comment
There was a problem hiding this comment.
Please fix all the lint issues as well
https://github.com/DIYgod/RSSHub/actions/runs/24176816934/job/70560033131?pr=21525
| import { processItems, rootUrl } from './utils'; | ||
|
|
||
| export const route: Route = { | ||
| path: '/actress/:id{[^/]+/?}', |
There was a problem hiding this comment.
| path: '/actress/:id{[^/]+/?}', | |
| path: '/actress/:id', |
| .some((el) => { | ||
| if (content(el).text().includes('Date added')) { | ||
| dateText = content(el).next().text().trim(); | ||
| return true; | ||
| } | ||
| return false; | ||
| }); |
There was a problem hiding this comment.
Use find() instead of some() as you should not have side effects in some()
Involved Issue / 该 PR 相关 Issue
No issue to close
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
PuppeteerNote / 说明
No time, only date is given on website. As such I didn't include timezone