This question is answered.


Permlink Replies: 4 - Pages: 1 - Last Post: 19 Feb 26, 17:35 Last Post By: nigel-aves Threads: [ Previous | Next ]
nigel-aves

Posts: 78
Registered: 23-May-2023
Format in Sitemap.xml incorrect for video.
Posted: 18 Feb 26, 22:51
 
  Click to reply to this thread Reply
From: https://serendipity.soft-focus-imagining.com
The video is the only file in this project.

How jAlbum outputs to the sitemap.xml
<url>
<loc>https://serendipity.soft-focus-imagining.com/Video/slides/reefer_madness-1938.html</loc>
<video:video>
<video:loc>https://serendipity.soft-focus-imagining.com/Video/slides/reefer_madness-1938.webm</video:loc>
<video:thumbnail_loc>https://serendipity.soft-focus-imagining.com/Video/slides/reefer_madness-1938.avif</video:thumbnail_loc>
<video:duration>4097</video:duration>
</video:video>
<lastmod>2026-02-18T21:28:42.874Z</lastmod>
</url>


What Google recommends as the video output for a sitemap.

<url>
<loc>https://www.example.com/videos/how-to-bake-bread</loc>
<video:video>
<video:thumbnail_loc>https://www.example.com/thumbs/123.jpg</video:thumbnail_loc>
<video:title>How to Bake Sourdough Bread</video:title>
<video:description>
A step-by-step guide to making the perfect sourdough starter and loaf.
</video:description>
<video:content_loc>
https://www.example.com/video123.mp4
</video:content_loc>
<video:player_loc>
https://www.example.com/videoplayer.php?video=123
</video:player_loc>
<video:duration>600</video:duration>
<video:publication_date>2026-02-18T14:16:00Z</video:publication_date>
</video:video>
</url>

Laza

Posts: 1,511
Registered: 6-Sep-2005
Re: Format in Sitemap.xml incorrect for video.
Posted: 19 Feb 26, 14:31   in response to: nigel-aves in response to: nigel-aves
Correct
  Click to reply to this thread Reply
Attachment util.js (192.8 KB)
Thanks for the feedback! It's made standards-compliant now. I've attached the file you can replace in the skin directory's (Ctrl-Shift-S) / lib folder, if you'd like to test it
nigel-aves

Posts: 78
Registered: 23-May-2023
Re: Format in Sitemap.xml incorrect for video.
Posted: 19 Feb 26, 17:01   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Sorry, I'm not sure what I'm supposed to do to add to Skin.

I've downloaded the file, but the (Ctrl-Shift-S) has me baffled. When I do that, I get an "AMD Instant Replay" dialogue box pop-up!

p.s. Thanks for the quick fix.
JeffTucker

Posts: 8,335
Registered: 31-Jan-2006
Re: Format in Sitemap.xml incorrect for video.
Posted: 19 Feb 26, 17:06   in response to: nigel-aves in response to: nigel-aves
Helpful
  Click to reply to this thread Reply
Tools > Open directories > Skin directory and close jAlbum. In File Explorer or Finder (OS dependent), navigate to the lib folder, and plant this new file in there. Launch jAlbum.
nigel-aves

Posts: 78
Registered: 23-May-2023
Re: Format in Sitemap.xml incorrect for video.
Posted: 19 Feb 26, 17:35   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Lava - Thank you, worked perfectly.

Jeff - Thanks for the pointer. Learn something every day!
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums