0

我正在尝试为 iTunes 托管 RSS 提要,但我不断收到不匹配的标签错误

Ubuntu // 阿帕奇

提要网址是: http: //fourteenthrees.com/podcasts/feed.xml

我的代码是:

<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

    <channel>
        <title>MUSIC 4 COMMITTING CRIMES</title>
        <link>http://www.fourteenthrees.com</link>
        <language>en-us</language>
        <copyright>℗ &amp; © 2019 Fourteen Threes</copyright>
        <itunes:subtitle>Music you listen to while committing crime.</itunes:subtitle>
        <itunes:author>Fourteen Threes</itunes:author>
        <itunes:summary>The soundtrack to all your crimes</itunes:summary>
        <description>Every episode is the soundtrack to a different crime.</description>
        <itunes:owner>
            <itunes:email>editor@fourteenthrees.com</itunes:email>
        </itunes:owner>
        <itunes:image href="http://fourteenthrees.com/images/podlogo.jpg"/>
        <itunes:category text="Society &amp; Culture" />
        <itunes:category text="Arts" />
        <itunes:category text="News &amp; Politics" />
        <itunes:explicit>yes</itunes:explicit>

        <item>
            <title>00 - TEST</title>
            <itunes:subtitle>DIRTROID:the girl dies</itunes:subtitle>
            <itunes:summary><![CDATA[Dirty Harry v Metroid.]]></itunes:summary>
            <itunes:image href="http://fourteenthrees.com/images/podlogo.jpg"/>
            <enclosure length="8727310" type="audio/x-m4a" url="http://fourteenthrees.com/podcasts/FT-01.mp3”/>
             <pubDate>Thu, 12 Sep 2019 16:00:00 PDT</pubDate>
            <itunes:duration>22:04</itunes:duration>
            <itunes:explicit>yes</itunes:explicit>
        </item>

   </channel>
</rss>

这是来自 Apple 推荐的提要验证器的错误;

抱歉,此提要无法验证。第 29 行,第 13 列:XML 解析错误::29:13:格式不正确(无效令牌)2019 年 9 月 12 日星期四 16:00:00 PDT

我看不到我做错了什么,可以用另一双眼睛,谢谢。

4

1 回答 1

0

Ububtu // Apache(应该在第一个问题中注意到)

以 root 身份登录

首先,我删除了 /var/www/html/podcasts/ 目录,用于存放 RSS 提要

cd /
sudo apt-get update -y
sudo apt-get install mysql-server -y
sudo /usr/bin/mysql_secure_installation
sudo systemctl enable apache2.service
sudo systemctl enable mysql.service

sudo apt-get update
sudo apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
sudo apt-get install php7.3
systemctl restart apache2.service

下载的播客生成器

将 zip 文件提取到桌面并将新内容放入名为 /podcasts/ 的新文件夹中

ssh podcast 文件夹到 /var/www/html/

Chmod 777 /var/www/html/
Chmod 777 /var/www/html/podcasts/
Chmod 777 var/www/html/media
chmod 777 /var/www/hmtl/podcasts/images

打开浏览器,导航到http://eaxample.com/podcasts/setup

按照屏幕上的 GUI 说明,填写所有类别并使用 FTP 查找选项来识别您的 ssh 上传(如果您的文件超过 2 mb)。

不要害怕使用管理区域中的后退按钮导航,如果您保存它,它会记住所有内容。

像魅力一样工作

于 2019-10-05T08:53:55.807 回答