From fe9bd853c26aba91df3e32d0ab35c0a4ad3a4ed0 Mon Sep 17 00:00:00 2001 From: Artin Date: Sun, 23 Sep 2018 14:21:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=96=9C=E9=A9=AC=E6=8B=89=E9=9B=85:=20?= =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E9=9F=B3=E9=A2=91=E9=93=BE=E6=8E=A5=20(#763)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/joinus/README.md | 2 +- docs/joinus/README.md | 5 ++--- routes/ximalaya/album.js | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/en/joinus/README.md b/docs/en/joinus/README.md index 75deccbe93..7b6478e760 100644 --- a/docs/en/joinus/README.md +++ b/docs/en/joinus/README.md @@ -118,7 +118,7 @@ ctx.state.data = { }; ``` -
If you want to make a podcast RSS
+
If you want to make a podcast feed
Reference article: diff --git a/docs/joinus/README.md b/docs/joinus/README.md index 77f16cd861..2fa2fdb84d 100644 --- a/docs/joinus/README.md +++ b/docs/joinus/README.md @@ -118,12 +118,11 @@ ctx.state.data = { }; ``` -
如果你想制作播客订阅型RSS, 点这儿
+
如果你想制作podcast feed, 点这儿
参考文章: - [Podcasts Connect 帮助 创建播客 - Apple](https://help.apple.com/itc/podcasts_connect/#/itca5b22233a) -- [Podcasts Connect 帮助 播客最佳做法 - Apple](https://help.apple.com/itc/podcasts_connect/#/itc2b3780e76) - RSS 格式参考: https://codepen.io/jon-walstedt/pen/jsIup - 播客验证: https://podba.se/validate/?url=https://rsshub.app/ximalaya/album/299146/ @@ -148,7 +147,7 @@ ctx.state.data = { itunes_item_image: '', // 图像 enclosure_url: '', // 音频链接 enclosure_length: '', // 时间戳 (播放长度) , 一般是秒数 - enclosure_type: '', // [.mp3就填'audio/mpeg'] [.m4a就填'audio/x-m4a'], 或其他类型. + enclosure_type: '', // [.mp3就填'audio/mpeg'] [.m4a就填'audio/x-m4a'] [.mp4就填'video/mp4'], 或其他类型. itunes_duration: '', // 由enclosure_length转换为 时:分:秒 }, ], diff --git a/routes/ximalaya/album.js b/routes/ximalaya/album.js index 3e4fde7077..9ed5a37892 100644 --- a/routes/ximalaya/album.js +++ b/routes/ximalaya/album.js @@ -53,9 +53,9 @@ module.exports = async (ctx) => { description: desc, pubDate: new Date(track_item.createdAt).toUTCString(), itunes_item_image: track_item.coverLarge.split('&')[0], - enclosure_url: track_item.downloadUrl, + enclosure_url: track_item.playPathAacv224, enclosure_length: enclosure_length, - enclosure_type: 'audio/aac', + enclosure_type: 'audio/x-m4a', itunes_duration: itunes_duration, };