MoePlayer / hexo-tag-aplayer

Embed aplayer in Hexo posts/pages
MIT License
741 stars 97 forks source link

歌曲列表提示undefined 404 #35

Closed onepve closed 6 years ago

onepve commented 6 years ago

提示 http://域名:4000/2018/01/01/undefined/ 404

如链接 http://域名:4000/2018/01/01/love_music.html 单独的歌曲没这个错误 http://域名:4000/2018/03/10/hexo.html 版本是3.0.3

grzhan commented 6 years ago

请提供有关使用 tag 的原文片段,方便排查错误。

onepve commented 6 years ago

@grzhan

---
title: 喜欢的音乐
date: "2018-1-1 19:27:13"
categories:
- 音乐
top: true
permalink : music
---
我喜欢的音乐
<!--more-->
---
我喜欢歌单
---
{% aplayerlist %}
{
    "narrow": false,
    "autoplay": true,
    "mode": "circulation",
    "showlrc": 3,
    "mutex": true,
    "theme": "#e6d0b2",
    "preload": "metadata",
    "listmaxheight": "513px",
    "music": [
        {
            "title": "海草舞",
            "author": "萧全",
            "url": "https://blog.wxlost.com/music/haicaowu.mp3",
            "pic": "https://blog.wxlost.com/music/xiaomeinv.jpg"
        },
        {
            "title": "小跳蛙",
            "author": "青蛙",
            "url": "https://blog.wxlost.com/music/青蛙 - 小跳蛙.mp3",
            "pic": "https://blog.wxlost.com/music/xiaomeinv.jpg"
        }
    ]
}
{% endaplayerlist %}
---
我喜欢的单曲
---
{% aplayer "海草舞" "萧全" "../../../music/haicaowu.mp3" "https://blog.wxlost.com/music/xiaomeinv.jpg" %}
---
{% asset_img xiaomeinv.jpg 这是一张图片 %}
---
grzhan commented 6 years ago

@wxlost showlrc 是歌词显示选项,这行可以删除,这样就不会请求歌词文件,应该就不会出现这个错误了。