AMP 缺少嵌入式视频

AMP missing embedded video

我管理的网站出现 AMP 问题。我在网站管理员工具上收到消息类型 [WNC-10036043]。

上面写着“Google systems have detected AMP pages on your site that are missing videos contained in their corresponding canonical pages.”,如下面第一张图片所示

我使用 AMP VALIDATOR 工具测试了网站的任何页面,一切都符合 AMP 标准。没有错误。

[编辑] 这里是 Google 的 AMP 验证器的响应 [/编辑]

此外,检查网站管理员工具:“Search Appearance -> Accelerated Mobile Pages”,我在下面的屏幕截图中得到了亮点。然后我去调查

我看到许多页面(几乎所有)都报告了相同的问题。在第二个屏幕截图中,您可以看到详细信息

这是因为所有页面都使用一个模板。 我检查了代码,但似乎没问题(请在下方查看)

这是 URL 测试的:https://www.liciafox.net/amp/songs/fragile

下面是代码截图,显示 JS 库已加载

下面是实施的 HTML AMP 代码的第二部分

这里是规范页面

我想知道我应该怎么做才能解决这个问题?

提前感谢您的帮助

查看您的规范页面,它以错误的方式引用了 AMP 页面,实际上它是:

<link rel="amphtml" href="//www.liciafox.net/amp/songs/fragile">

尝试去掉URL

前面的//

已解决

问题进入 URL 的第一部分。 在 canonical 页面上发布视频形式的 youtube,我确实使用了格式

https://www.youtube-nocookie.com/watch?v={videocode}

相反,AMP 代码不允许任何人决定是否使用 -nocookie 选项。

AMP 标签确实是:

<amp-youtube 
             data-videoid="{videocode}"
             layout="responsive"
             width="480"
             height="270">
</amp-youtube>

调用此地址格式:

https://www.youtube.com/watch?v={videocode}

而不是这个:

https://www.youtube-nocookie.com/watch?v={videocode}

在目前的情况下,无法使用“-nocookie”选项进行 AMP 调用,请参阅文档 amp-youtube tag and in the AMP Examples

Webmasters Tools > Search appearance > Accelerated Mobile Pages 上的 AMP 分析器检测到内容不匹配,并认为:Missing embedded video (Non-critical issue)

在规范页面上重写 YouTUBE link,格式为:

https://www.youtube.com/watch?v={videocode}

问题已解决