Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(route): apple podcast latest episodes #16530

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

EthanWng97
Copy link
Contributor

Involved Issue / 该 PR 相关 Issue

Close #

Example for the Proposed Route(s) / 路由地址示例

/apple/podcast/latest-episodes

New RSS Route Checklist / 新 RSS 路由检查表

  • New Route / 新的路由
  • Anti-bot or rate limit / 反爬/频率限制
    • If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • Date and time / 日期和时间
    • Parsed / 可以解析
    • Correct time zone / 时区正确
  • New package added / 添加了新的包
  • Puppeteer

Note / 说明

@github-actions github-actions bot added the Route label Aug 24, 2024
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/apple/podcast/latest-episodes - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/>ConfigNotFoundError: Either Auth or Cookie is not configured!
Route: /apple/podcast/latest-episodes
Full Route: /apple/podcast/latest-episodes
Node Version: v22.7.0
Git Hash: ef5e9ab0

@github-actions github-actions bot added the Auto: Route Test Complete Auto route test has finished on given PR label Aug 25, 2024
@EthanWng97
Copy link
Contributor Author

@TonyRL do I need to config required ENV to output the correct xml?

Comment on lines +67 to +70
apple: {
auth?: string;
cookie?: string;
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a should come right before b

bilibili: {

Comment on lines +13 to +17
{
name: 'APPLE_AUTH',
description:
'Apple Authorization. can be found at `https://podcasts.apple.com/us/library/latest-episodes`.Open Developer Tools and navigate to Network tab. locate request `amp-api.podcasts.apple.com/v1/me/library/latest-episodes` and copy Authorization from header',
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is hard-coded in the resource file

Screenshot

lib/routes/apple/podcast-latest-episodes.ts Outdated Show resolved Hide resolved
lib/routes/apple/podcast-latest-episodes.ts Outdated Show resolved Hide resolved
if (!auth || !cookie) {
throw new ConfigNotFoundError('Either Auth or Cookie is not configured!');
}
const data = await ofetch(link, {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use the API of /v1/editorial/us/groupings as well which does not require setting up cookie unless it's paid

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could u provide more context? the cookie here is used to fetch the personal subscription.

EthanWng97 and others added 2 commits August 27, 2024 12:46
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/apple/podcast/latest-episodes - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/>ConfigNotFoundError: Either Auth or Cookie is not configured!
Route: /apple/podcast/latest-episodes
Full Route: /apple/podcast/latest-episodes
Node Version: v22.7.0
Git Hash: 4a199ff4

Copy link
Contributor

This PR is stale because it has been opened for more than 3 weeks with no activity. Comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale No feedback from OP label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto: Route Test Complete Auto route test has finished on given PR Route Stale No feedback from OP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants