• Hi Frank,

    thanks for the great work on the plugin. Following the discussion on schema warnings, I’d like to draw your attention also to the itemprop uploadDate.

    For some youtube videos the upload date is not retrieved properly. As a result, the content of uploadDate uses the empty fallback, which Google complains about.

    Please find an example video; a quick fix could be to use Date.now() as a default for the itemprop uploadDate if somehow the Google API does not return adequate values.

    
    <div class="lyte hidef lP" id="WYL_1dA7O_Ga94c" itemprop="video" itemscope="" itemtype="https://schema.org/VideoObject">
      <meta itemprop="embedURL" content="https://www.youtube.com/embed/1dA7O_Ga94c">
      <meta itemprop="uploadDate" content="">
    </div>
    

    Thanks in advance,

    Matthieu

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    weird, did a quick test and uploadDate is retrieved in my test;

    
    <div class="lyte-wrapper" style="width:640px;max-width: 100%;margin:5px;"><div class="lyMe" id="WYL_1dA7O_Ga94c" itemprop="video" itemscope itemtype="https://schema.org/VideoObject"><meta itemprop="thumbnailUrl" content="https://blog.futtta.be/wp-content/plugins/wp-youtube-lyte/lyteThumbs.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1dA7O_Ga94c%2Fhqdefault.jpg" /><meta itemprop="embedURL" content="https://www.youtube.com/embed/1dA7O_Ga94c" /><meta itemprop="uploadDate" content="2016-07-13T08:33:45.000Z" />

    that being said having some fallback might make sense, feel free to create a PR on Github and I’ll be happy to merge ??

    frank

    Thread Starter Matthieu-P. Schapranow

    (@theschappy)

    Thanks for fast response. In the meantime, I found a solution by following your hint. After unprotecting the lyte meta data, I was able to delete the _lyte_* metadata for the specific page, published the page and voilà the uploadDate itemprop is displayed properly. Curious, because I deleted the complete cache via the button in the plugin settings, which did not make the job, hmm.

    What do you think about deleting all _lyte_* metadata on all pages when deploying a new release of the plugin?

    Cheers,

    Matthieu

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    yeah, cache purge does not always clear all items i’m afraid, hope to have time to troubleshoot that one day ??

    re. deleting all metadata automatically at upgrade time; pretty invasive, would generate _a lot_ of calls to the YT API and _should_ in general not be needed?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    just pushed out 1.7.8 with some more fixes that should prevent structured data nagging by google ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘itemprop uploadDate not set consistently’ is closed to new replies.