Skip to content

Commit 0143916

Browse files
committed
Set album status (public/private). Clone Publish Service
1 parent daa544b commit 0143916

14 files changed

Lines changed: 1730 additions & 443 deletions

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# Changelog
2+
## [20260122.27] - 2026-01-22
3+
### Fixed
4+
#37 An error occurred while deleting images
5+
Fixed validation of Publish Service Description - now sets a default service name if left blank.
6+
Removed default collection that was created when a new publish service is created
7+
8+
### Added
9+
Option to clone an existing publish service, retaining Piwigo connection if present
10+
Option to maintain public/private setting on albums
11+
212
## [20260111.26] - 2026-01-09
313
### Fixed
4-
Fix #35 Comments Synchronisation feature request
514
Fix #30 Cannot get tag list from Piwigo - error 401. Incorrect error message fixed.
615

716
### Added

README.md

Lines changed: 13 additions & 135 deletions
Large diffs are not rendered by default.

piwigoPublish.lrplugin/Info.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ return {
2525
LrPluginName = "Piwigo Publisher",
2626
-- typo in PwigoPublish is noted but can't be changed without forcing all services using this plugin to be re-initialised.
2727
LrToolkitIdentifier = "fiona.boston.PwigoPublish",
28+
-- LrToolkitIdentifier = "fiona.boston.PiwigoPublish",
2829
LrMetadataProvider = 'CustomMetadata.lua',
2930
LrMetadataTagsetFactory = 'Tagset.lua',
3031
LrInitPlugin = "Init.lua",
@@ -34,6 +35,13 @@ return {
3435
file = "PublishServiceProvider.lua",
3536
},
3637

38+
-- define custom metadata data for this plugin
39+
PublishSettings = {
40+
publishMetadata = {
41+
{ id = 'myCustomStatus', title = 'Status', type = 'string' },
42+
{ id = 'syncToken', title = 'Token', type = 'string' },
43+
},
44+
},
3745

3846
LrLibraryMenuItems = {
3947
-- Menu items for Library -> Plug In Extras -> Piwigo Publisher
@@ -59,5 +67,5 @@ return {
5967

6068
LrPluginInfoProvider = 'PluginInfo.lua',
6169

62-
VERSION = { major=20260111, minor=26, revision=0 },
70+
VERSION = { major=20260122, minor=27, revision=0 },
6371
}

piwigoPublish.lrplugin/Init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ _G.LrExportSettings = import "LrExportSettings"
4949
_G.JSON = require "JSON"
5050
_G.utils = require "utils"
5151
_G.PiwigoAPI = require "PiwigoAPI"
52+
_G.PWImportService = require "PWImportService"
53+
_G.PWStatusManager = require "PWStatusManager"
5254

5355
-- Global initializations
5456
_G.prefs = _G.LrPrefs.prefsForPlugin()
@@ -70,9 +72,7 @@ else
7072
log:disable()
7173
end
7274

73-
_G.PiwigoBusy = false
74-
_G.RenderPhotos = false
7575
_G.iconPath = _PLUGIN:resourceId("icons/icon_med.png")
76-
_G.pluginVersion = "20260111.26"
76+
_G.pluginVersion = "20260122.27"
7777
--_G.LocStrings = utils.loadStrings()
7878

piwigoPublish.lrplugin/PWCollToSet.lua

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ local function CollToSet()
2828

2929
local selPhotos = catalog:getTargetPhotos()
3030
local sources = catalog:getActiveSources()
31-
--[[
32-
if utils.nilOrEmpty(selPhotos) then
33-
LrDialogs.message("Please select photos to resend metadata","","warning")
34-
return false
35-
end
36-
]]
31+
3732
-- is source a LrPublishedCollection or LrPublishedCollectionSet in selected published service
3833
local useService = nil
3934
local selectedCollection = nil
@@ -100,7 +95,7 @@ local function CollToSet()
10095
-- Set parent and remote id same as selected collection parent
10196
local newCollSet = PiwigoAPI.createPublishCollectionSet(catalog, useService, publishSettings, selCollName, catId, selColParent)
10297
if not newCollSet then
103-
LrDialogs.message("CollToSet - Can't fcreate new collection set " .. selCollName,"","warning")
98+
LrDialogs.message("CollToSet - Can't create new collection set " .. selCollName,"","warning")
10499
return false
105100
end
106101

0 commit comments

Comments
 (0)