meta-video-links¶
此规则检查元数据中视频链接的格式。始终使用字典作为meta/main.yml
文件中的项。
video_links
部分中的项必须在字典中,并使用以下键
url
title
url
键的值必须是来自 YouTube、Vimeo 或 Google Drive 的共享链接。
有问题的代码¶
---
galaxy_info:
video_links:
- https://www.youtube.com/watch?v=aWmRepTSFKs&feature=youtu.be # <- Does not use the url key.
- my_bad_key: https://www.youtube.com/watch?v=aWmRepTSFKs&feature=youtu.be # <- Uses an unsupported key.
title: Incorrect key.
- url: www.acme.com/vid # <- Uses an unsupported url format.
title: Incorrect url format.