blinkfox / hexo-theme-matery

A beautiful hexo blog theme with material design and responsive design.一个基于材料设计和响应式设计而成的全面、美观的Hexo主题。国内访问:http://blinkfox.com
https://blinkfox.github.io/
Apache License 2.0
5.23k stars 1.25k forks source link

按照文档,_config.yml里配置了music。但实际上没生效 #606

Open fineday009 opened 3 years ago

fineday009 commented 3 years ago

image

# Whether to display the music
music:
  enable: true
  title:           # non-fixed mode works
    enable: true
    show: Listen to music
  server: netease   # require music platform: netease, tencent, kugou, xiami, baidu
  type: song    # require song, playlist, album, search, artist
  id: 95796     # require song id / playlist id / album id / search keyword
  fixed: false      # enable fixed mode
  autoplay: false   # audio atuoplay
  theme: '#42b983'
  loop: 'all'       # player loop play, values: 'all', 'one', 'none'
  order: 'random'   # player play order, values: 'list', 'random'
  preload: 'auto'   # values: 'none', 'metadata', 'auto'
  volume: 0.7       # default volume, notice that player will remember user setting, default volume will not work after user set volume themselves
  listFolded: false  # indicate whether list should folded at first

只配置了一首歌,但首页拉出来的歌单是一个列表,都是不认识的歌。什么情况?

image

blinkfox commented 3 years ago

现在的音乐模块功能跟以前不一样了,配置中的 server 值的类型和 id 决定了去哪些音乐网站拉取一些音乐列表。

fineday009 commented 3 years ago

现在的音乐模块功能跟以前不一样了,配置中的 server 值的类型和 id 决定了去哪些音乐网站拉取一些音乐列表。

我上边就是配置的是server=netease id= 95796(一首歌的id),意思这样不行吗? 必须是音乐列表还是啥.

能不能给一个可用的配置我抄下,折腾了很久都是一个默认的播放列表,里边的歌都不认识。

image

blinkfox commented 3 years ago

@a347807131 这个你有空可以回复下,当时你贡献的这个功能,可能更清除点儿。 https://github.com/blinkfox/hexo-theme-matery/pull/316

myqlrs commented 3 years ago

登陆个人网易云音乐,打开歌单,查看浏览器地址,id 后面就是歌单的id,这样就是一个音乐列表了,如果只是一首歌把歌生成外链,找里面的id号,我是这样干的

RagingWaves commented 3 years ago

我的也是,原来用的网易云,后来换成QQ音乐就能正常使用了,你可以试一下

a347807131 commented 2 years ago

摊手手