XML Sitemaps Generator

Author Topic: Time format in video sitemap wrong  (Read 8273 times)

marcel5

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 10
Time format in video sitemap wrong
« on: March 13, 2014, 11:41:18 AM »
Hi Oleg,

after the creation of video sitemaps works now, I have another issue: the time format of the video:duration tag seems to be wrong.

The videos of my sitemap are crawled by the schema.org markup. According to the schema.org standard the time format of the markup must be according to ISO 8601. Example:
Code: [external links are visible to admins only]
<meta itemprop="duration" content="T1M33S" />or
Code: [external links are visible to admins only]
<meta itemprop="duration" content="PT1M33S" />(I'm still not sure if it needs to be "T" or "PT" at the beginning. I think the schema.org standard is not clear about that.)

The video sitemap generator simply copies this data. But for the XML sitemap this time format is wrong. When I test the sitemap with Google Webmaster Tools (with all time format variations P/PT/T at the beginning) Google says that the time format is invalid.

In the video sitemap the duration must be given in seconds. Example:
Code: [external links are visible to admins only]
<video:duration>600</video:duration>Source: [external links are visible to admins only] (Scroll down to the table "Video-Tag-Definitionen")

It seems that the video sitemap generator should convert the time format. What do you think?

Regards
Marcel

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Time format in video sitemap wrong
« Reply #1 on: March 14, 2014, 01:56:00 PM »
Hello,

it should in format:
<meta itemprop="duration" content="T1M33S" />

(generator will convert the time in this case)
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

marcel5

  • Registered Customer
  • Jr. Member
  • *
  • Posts: 10
Re: Time format in video sitemap wrong
« Reply #2 on: March 18, 2014, 09:17:11 AM »
Hi Oleg,

thank you very much for your reply! Yes, it works now.

Kind greeting
Marcel

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2