I'm expanding a static site with playable videos contextualized in a TV Series and I would like to know how to properly fill in the tags url
and datePublished
.
Currently, with only one embeddable source, the JSON-LD generated is:
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "TVEpisode",
"partOfTVSeries" : {
"@type" : "TVSeries",
"name" : "Name of the Show"
},
"keywords": "a,list,of,comma,separated,tags",
"partOfSeason" : {
"@type" : "TVSeason",
"seasonNumber" : "1"
},
"episodeNumber" : "1",
"image" : "absolute/path/to/video/image.jpg",
"url" : "permalink",
"review" : {
"@type" : "Review",
"author" : {
"@type" : "Person",
"name" : "Summary Author Name"
},
"reviewBody" : "Summary"
}
}
</script>
With only one embeddable source it was just a matter of using the template functions to retrieve the Permalink and the Date in which the video has been published.
But I don't know how to do it for multiple sources.
I tried to simply duplicate the whole block, simulating an iteration, changing the mentioned values but when testing with Structured Data Testing Tool, although no errors were reported, the second entry was ignored.