Skip to content

Commit b3f5e20

Browse files
committed
Fix #52 New "private" album aren't private, GPS coordinates can now be sent to Piwigo without republishing image
1 parent 77568f5 commit b3f5e20

6 files changed

Lines changed: 31 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# Changelog
2+
## [20260218.33] - 2026-02-18
3+
### Fixed
4+
Fix #52 New "private" album aren't private
5+
### Added
6+
GPS coordinates can now be sent to Piwigo without republishing image - via Send Metadata to Piwigo for Selected Photos option
7+
28
## [20260208.32] - 2026-02-08
39
### Fixed
410
Fix #41 Issue with Import albums - public/private setting

piwigoPublish.lrplugin/Info.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ return {
6666

6767
LrPluginInfoProvider = 'PluginInfo.lua',
6868

69-
VERSION = { major=20260208, minor=32, revision=0 },
69+
VERSION = { major=20260218, minor=33, revision=0 },
7070
}

piwigoPublish.lrplugin/Init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ _G.iconPath = _PLUGIN:resourceId("icons/icon_med.png")
7979
-- _PLUGIN.VERSION is nil here for some reason, so hardcoding for now
8080
-- just need to ensure both places are updated together
8181

82-
_G.versionInfo = { major=20260208, minor=32, revision=0 }
82+
_G.versionInfo = { major=20260218, minor=33, revision=0 }
8383

8484
_G.pluginVersion = string.format("%d.%d", versionInfo.major, versionInfo.minor)
8585
-- Auto-update checker

piwigoPublish.lrplugin/PiwigoAPI.lua

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,11 +1782,12 @@ function PiwigoAPI.pwCategoriesAdd(propertyTable, info, metaData, callStatus)
17821782
name = "comment",
17831783
value = description
17841784
})
1785-
table.insert(Params, {
1786-
name = "status",
1787-
value = albumstatus
1788-
})
17891785
end
1786+
table.insert(Params, {
1787+
name = "status",
1788+
value = albumstatus
1789+
})
1790+
17901791

17911792
if metaData.parentCat ~= "" then
17921793
table.insert(Params, {
@@ -2402,6 +2403,18 @@ function PiwigoAPI.updateMetadata(propertyTable, lrPhoto, metaData)
24022403
})
24032404
end
24042405

2406+
-- GPS coordinates
2407+
if metaData.latitude and metaData.longitude then
2408+
table.insert(params, {
2409+
name = "latitude",
2410+
value = tostring(metaData.latitude)
2411+
})
2412+
table.insert(params, {
2413+
name = "longitude",
2414+
value = tostring(metaData.longitude)
2415+
})
2416+
end
2417+
24052418
-- keywords
24062419
if metaData.tagString and metaData.tagString ~= "" then
24072420
-- convert tagString to list of tagIDS

piwigoPublish.lrplugin/utils.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,14 @@ function utils.getPhotoMetadata(publishSettings, lrPhoto)
532532
end
533533
local useDate = LrDate.timeToUserFormat(rawDate, "%Y-%m-%d %H:%M:%S")
534534
metaData.dateCreated = useDate or ""
535-
536535
metaData.tagString = utils.BuildTagString(publishSettings, lrPhoto)
537536

537+
-- GPS coordinates
538+
local gps = lrPhoto:getRawMetadata("gps")
539+
if gps then
540+
metaData.latitude = gps.latitude
541+
metaData.longitude = gps.longitude
542+
end
538543
return metaData
539544
end
540545

piwigo_publisher_test_plan.ods

38 KB
Binary file not shown.

0 commit comments

Comments
 (0)