mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
fixed nonexisitng xmp metadata error
This commit is contained in:
@@ -145,8 +145,12 @@ def get_image_info(item: str, folder: str) -> dict[str, Any]:
|
||||
del exifdata[key]
|
||||
else:
|
||||
exifdata = None
|
||||
if xmp["xmpmeta"]["RDF"]["Description"].get("subject", False):
|
||||
tags = xmp["xmpmeta"]["RDF"]["Description"]["subject"]["Bag"]["li"]
|
||||
if xmp:
|
||||
if xmp["xmpmeta"]["RDF"]["Description"].get("subject", False):
|
||||
tags = xmp["xmpmeta"]["RDF"]["Description"]["subject"]["Bag"]["li"]
|
||||
else:
|
||||
tags = []
|
||||
xmp = None
|
||||
else:
|
||||
tags = []
|
||||
xmp = None
|
||||
|
||||
Reference in New Issue
Block a user