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

[Bug]: 音乐馆默认歌单 #302

Open
manman-dong opened this issue Nov 22, 2024 · 1 comment
Open

[Bug]: 音乐馆默认歌单 #302

manman-dong opened this issue Nov 22, 2024 · 1 comment

Comments

@manman-dong
Copy link

使用的 AnZhiYu 版本? | What version of AnZhiYu are you use?

1.6.14

使用的浏览器? || What browse are you using?

Chrome

是否修改过主题文件? || Has the theme files been modified?

是 (Yes)

使用的系统? || What operating system are you using?

Windows

问题描述 | Describe the bug

image

这个歌单页面怎么删除啊?挺介意的,都是些不喜欢没听过的歌,我看好几个安知鱼博客主题进入/music/都是这个歌单,必须要点一下切换歌单才能改为自己music.json之中配置的歌单。
已经修改主题config.yml配置文件内容,还是默认显示这个歌单,必须要点一下切换歌单才能改为自己的歌单。

https://www.zero617.top/music/

安知鱼 主题之中config.yml文件配置

# 左下角音乐配置项
# https://github.com/metowolf/MetingJS
nav_music:
  enable: true
  console_widescreen_music: false # 宽屏状态控制台显示音乐而不是标签 enable为true 控制台依然会显示
  id: 5372462945
  server: netease
  all_playlist: https://music.163.com/#/playlist?id=5372462945


# 路径为 /music 的音乐页面默认加载的歌单 1. nav_music 2. custom
music_page_default: custom

music.json 配置内容

[
  {
    "name": "青花瓷",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/青花瓷/青花瓷.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000002eFUFm2XYZ7z_2.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/青花瓷/青花瓷.lrc"
  },
  {
    "name": "稻香",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/周杰伦/稻香/稻香.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000002Neh8l0uciQZ_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/周杰伦/稻香/稻香.lrc"
  },
  {
    "name": "晴天",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/晴天/晴天.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000000MkMni19ClKG_3.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/晴天/晴天.lrc"
  },
  {
    "name": "七里香",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/七里香/七里香.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000003DFRzD192KKD_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/七里香/七里香.lrc"
  },
  {
    "name": "花海",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/花海/花海.flac",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000002Neh8l0uciQZ_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/花海/花海.lrc"
  },
  {
    "name": "反方向的钟",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/反方向的钟/反方向的钟.flac",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000000f01724fd7TH_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/反方向的钟/反方向的钟.lrc"
  },
  {
    "name": "兰亭序",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/周杰伦/兰亭序/兰亭序.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000002Neh8l0uciQZ_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/周杰伦/兰亭序/兰亭序.lrc"
  },
  {
    "name": "说好的辛福呢",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/说好的辛福呢/说好的辛福呢.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000002Neh8l0uciQZ_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/说好的辛福呢/说好的幸福呢.lrc"
  },
  {
    "name": "等你下课 (with 杨瑞代)",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/周杰伦/等你下课/等你下课.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000003bSL0v4bpKAx_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/周杰伦/等你下课/等你下课.lrc"
  },
  {
    "name": "我落泪情绪零碎",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/我落泪情绪零碎/我落泪情绪零碎.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000000bviBl4FjTpO_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/我落泪情绪零碎/我落泪情绪零碎.lrc"
  },
  {
    "name": "听妈妈的话",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/听妈妈的话/听妈妈的话.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000002jLGWe16Tf1H_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/听妈妈的话/听妈妈的话.lrc"
  },
  {
    "name": "明明就",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/明明就/明明就.flac",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000003Ow85E3pnoqi_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/明明就/明明就.lrc"
  },
  {
    "name": "我是如此相信",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/我是如此相信/我是如此相信.flac",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000001hGx1Z0so1YX_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/我是如此相信/我是如此相信.lrc"
  },
  {
    "name": "发如雪",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/发如雪/发如雪.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M0000024bjiL2aocxT_3.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/发如雪/发如雪.lrc"
  },
  {
    "name": "以父之名",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/以父之名/以父之名.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000000MkMni19ClKG_3.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/以父之名/以父之名.lrc"
  },
  {
    "name": "园游会",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/园游会/园游会.flac",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000003DFRzD192KKD_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/园游会/园游会.lrc"
  },
  {
    "name": "本草纲目",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/本草纲目/本草纲目.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000002jLGWe16Tf1H_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/本草纲目/本草纲目.lrc"
  },
  {
    "name": "龙卷风",
    "artist": "周杰伦",
    "url": "https://npm.elemecdn.com/[email protected]/龙卷风/龙卷风.mp3",
    "cover": "https://y.qq.com/music/photo_new/T002R300x300M000000f01724fd7TH_1.jpg?max_age=2592000",
    "lrc": "https://npm.elemecdn.com/[email protected]/龙卷风/龙卷风.lrc"
  }
]

出现问题的网站 | Website

https://www.zero617.top/music/

@L1ulee
Copy link

L1ulee commented Dec 8, 2024

请参考文档中的修改方式
https://docs.anheyu.com/page/music.html

如何修改默认歌单?

menu中音乐馆的路径修改为以下格式即可/music/?id=1708664797&server=tencent,支持idserver参数。

我的:
    音乐馆: /music/ || icon-music

例如:

-- 音乐馆: /music/ || icon-music
++ 音乐馆: /music//?id=1708664797&server=tencent || icon-music

id 与 server 的填写请参考MetingJS

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

No branches or pull requests

2 participants