Skip to content

🐞 fix: 修复播客电台跳转失败并优化播客信息展示#977

Merged
imsyy merged 1 commit into
SPlayer-Dev:devfrom
WorldSansha:fix/podcast-fullplayer-nav
Mar 9, 2026
Merged

🐞 fix: 修复播客电台跳转失败并优化播客信息展示#977
imsyy merged 1 commit into
SPlayer-Dev:devfrom
WorldSansha:fix/podcast-fullplayer-nav

Conversation

@WorldSansha
Copy link
Copy Markdown
Contributor

  • 修复全屏播放器点击播客条目无法跳转的问题(路由名称错误 + 电台 ID 缺失)
  • 播客歌手栏显示主播名称,电台栏显示播客名称并支持跳转
  • 任务栏歌词和系统媒体控制显示实际播客信息而非固定文本
  • 点击主播名称时提示暂不支持查看主播主页

- 修复全屏播放器点击播客条目无法跳转的问题(路由名称错误 + 电台 ID 缺失)
- 播客歌手栏显示主播名称,电台栏显示播客名称并支持跳转
- 任务栏歌词和系统媒体控制显示实际播客信息而非固定文本
- 点击主播名称时提示暂不支持查看主播主页

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求解决了播客播放和显示相关的多个问题。它修复了一个关键错误,即全屏播放器中无法跳转到播客电台页面,通过确保正确的路由和动态获取缺失的电台ID。此外,它显著提升了用户体验,在播放器艺术家部分、系统媒体控制和任务栏歌词等各种UI组件中显示准确的播客主播名称和电台标题。DjData 类型中新增了 radioId 字段以支持这种改进的数据处理。

Highlights

  • 播客跳转修复: 修复了全屏播放器中点击播客条目无法跳转的问题,通过修正路由名称和处理缺失的电台ID。
  • 播客信息展示优化: 优化了播客信息在应用中的展示,现在会显示实际的主播名称和播客标题,而非通用的“播客电台”。
  • 系统媒体控制更新: 更新了系统媒体控制和任务栏歌词,以准确显示播客详情。
  • 主播主页提示: 当用户尝试点击主播名称时,会提示该功能暂不支持。
Changelog
  • src/components/Player/MainPlayer.vue
    • 更新了播客艺术家显示,以展示主播名称。
    • 为点击主播名称添加了提示。
  • src/components/Player/PlayerMeta/PlayerData.vue
    • 更新了播客艺术家显示,以展示主播名称并添加了点击提示。
    • 重构了播客电台导航,使用新的 jumpToRadio 函数。
    • 实现了为播客节目获取缺失电台ID的逻辑。
  • src/core/player/MediaSessionManager.ts
    • 修改了媒体会话元数据,以显示实际的播客主播和名称。
  • src/types/main.ts
    • 为 DjData 类型添加了 radioId 属性。
  • src/utils/format.ts
    • 在格式化DJ数据时包含了 radioId。
    • 更新了播放器信息对象,以使用实际的播客主播和名称。
Activity
  • 此拉取请求自创建以来没有人工活动。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

本次拉取请求修复了播客电台跳转失败的问题,并优化了播客信息的展示。主要改进包括在播放器和系统媒体控制中显示实际的主播名称和播客名称,以及在点击主播名称时提供提示。同时,为了兼容旧数据,增加了通过节目详情 API 获取电台 ID 的逻辑。整体改动提升了用户体验和数据准确性。

Comment on lines +428 to +429
// 暂不支持查看主播主页
const showCreatorTip = () => window.$message.info("暂不支持查看主播主页");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

showCreatorTip 函数与 src/components/Player/PlayerMeta/PlayerData.vue 中的函数完全相同。为了避免代码重复并提高可维护性,建议将其提取到一个共享的工具函数或 Vue 组合式函数中。

Comment on lines +260 to +261
// 暂不支持查看主播主页
const showCreatorTip = () => window.$message.info("暂不支持查看主播主页");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

showCreatorTip 函数与 src/components/Player/MainPlayer.vue 中的函数完全相同。为了避免代码重复并提高可维护性,建议将其提取到一个共享的工具函数或 Vue 组合式函数中。

Comment thread src/components/Player/PlayerMeta/PlayerData.vue
@imsyy imsyy merged commit 16637e7 into SPlayer-Dev:dev Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants