@@ -161,7 +161,6 @@ function PublishTask.processRenderedPhotos(functionContext, exportContext)
161161
162162 local lrPhoto = rendition .photo
163163 local remoteId = rendition .publishedPhotoId or " "
164- <<<<<<< HEAD
165164
166165 -- Detect photo already published in this service (multi-album support)
167166 local existingPwImageId = nil
@@ -199,9 +198,6 @@ function PublishTask.processRenderedPhotos(functionContext, exportContext)
199198 end
200199 end
201200
202- =======
203-
204- >>>>>>> main
205201 -- Wait for next photo to render.
206202 local success , pathOrMessage = rendition :waitForRender ()
207203 -- Check for cancellation again after photo has been rendered.
@@ -431,7 +427,6 @@ function PublishTask.deletePhotosFromPublishedCollection(publishSettings, arrayO
431427 log :info (" PublishTask.deletePhotosFromPublishedCollection - dissociating photo " .. thispwImageID .. " from category " .. pwCatID )
432428 callStatus = PiwigoAPI .dissociateImageFromCategory (publishSettings , thispwImageID , pwCatID )
433429 if callStatus .status then
434- <<<<<<< HEAD
435430 -- Only clear metadata if photo is no longer in any other published collection
436431 -- Check if photo exists in other collections of this service
437432 local publishService = publishedCollection :getService ()
@@ -453,18 +448,6 @@ function PublishTask.deletePhotosFromPublishedCollection(publishSettings, arrayO
453448 else
454449 log :info (" PublishTask.deletePhotosFromPublishedCollection - photo " .. thispwImageID .. " still in other collections, keeping metadata" )
455450 end
456- =======
457- local pluginData = {
458- pwHostURL = " " ,
459- albumName = " " ,
460- albumUrl = " " ,
461- imageUrl = " " ,
462- pwUploadDate = " " ,
463- pwUploadTime = " " ,
464- pwCommentSync = " "
465- }
466- PiwigoAPI .storeMetaData (catalog , thisLrPhoto , pluginData )
467- >>>>>>> main
468451 thisPhotoToUnpublish [4 ] = true
469452 else
470453 PWStatusManager .setPiwigoBusy (publishService , false )
0 commit comments