Skip to content

Commit

Permalink
2.4.4
Browse files Browse the repository at this point in the history
- Fixed ModFS covers where used a images in sitemaps
  • Loading branch information
DerGoogler committed Jun 29, 2024
1 parent 85319ac commit 69e0a7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ pygithub>=1.59.0
python-dateutil>=2.8.2
requests>=2.31.0
tabulate>=0.9.0
gitpython>=3.1.37
gitpython>=3.1.37
validators>=0.28.3
4 changes: 2 additions & 2 deletions sync/__version__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
def get_version() -> str:
return "2.4.3"
return "2.4.4"


def get_version_code() -> int:
return 243
return 244


__all__ = [
Expand Down
4 changes: 3 additions & 1 deletion sync/utils/Sitemap.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import json
import validators
import xml.etree.ElementTree as ET

from xml.dom import minidom
from datetime import datetime

Expand Down Expand Up @@ -29,7 +31,7 @@ def Sitemap(modules_json, base_url, output):
lastmod_element = ET.SubElement(url_element, "lastmod")

cover = module.get("cover") if module.get("cover") else module.get("track").get("cover")
if cover:
if cover and validators.url(cover):
url_image_image = ET.SubElement(url_element, "image:image")
url_image_image_loc = ET.SubElement(url_image_image, "image:loc")
url_image_image_loc.text = cover
Expand Down

0 comments on commit 69e0a7f

Please sign in to comment.