<;itunes:持续时间>;Jekyll创建的RSS提要错误
我有一个Jekyll网站,我有一个我创建的播客提要<;itunes:持续时间>;Jekyll创建的RSS提要错误,rss,jekyll,podcast,Rss,Jekyll,Podcast,我有一个Jekyll网站,我有一个我创建的播客提要 --- --- <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <atom:link href="http://mikewills.me/rss-podcast.xml" rel="self" type="ap
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="http://mikewills.me/rss-podcast.xml" rel="self" type="application/rss+xml" />
<title>{{ site.name }}</title>
<description>{{ site.description }}</description>
<link>{{ site.url }}</link>
{% for post in site.categories.podcast limit:15 %}
<item>
<title>{{ post.title }}</title>
<description>
<![CDATA[
{{ post.content | xml_escape }}
]]>
</description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ site.url }}{{ post.url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
{% if post.podcasturl %}<enclosure url="{{ post.podcasturl }}" length="{{ post.podcastsize }}" type="{{ post.podcasttype }}" />{% endif %}
</item>
{% endfor %}
</channel>
</rss>
---
---
一个例子是。标签必须包含以下格式的数据:
HH:MM:SS
因此,在您的具体情况下,2分7秒应该是
<itunes:duration>2:07</itunes:duration>
2:07
另见
如果Jekyll没有将持续时间转换为正确的格式,这可能是一个bug,您应该通知开发人员。@Julien Genestoux建议的方法有效
“如果你在“2.07”周围加上逗号,迫使杰基尔将其视为一个字符串,因此不转换它会怎么样?——朱利安·杰内斯托7月30日13:31”嘿,来自遥远的未来
上周我正好碰到了这个问题。Spotify向我解释说,我设法在播客提要中获得了一个十进制数字(而不是时间戳)
嘿,我有一个确切的问题
在我的post.markdown文件中,我写道:
audio_mp3_duration: 35:56
---
液体编程语言的有趣之处在于,它会以某种方式尝试计算上述内容,因此我必须特别像这样包装我的字符串:
audio_mp3_duration: '43:01'
---
原来就是这个问题;) 如果在“2.07”周围加上逗号,迫使Jekyll将其视为字符串,从而不转换它会怎么样?嗯。。。我想午夜编程对我来说不是最好的。我没想到。今天晚些时候我会看一看,看这是否解决了问题。