flingo64 / PhotoStation-Upload-Lr-Plugin

Photo StatLr (aka PhotoStation Upload) is a Lightroom Publish and Export Service Plugin that enables the export /publishing of photos and videos from Lr to a Synology Photo Station. It uploads the photos/videos and all required thumbnails. It can download comments and ratings and do a real two-way synch of various metadata (tags, ratings, labels).
http://messmer-online.de/index.php/software/11-photo-statlr
GNU General Public License v3.0
209 stars 21 forks source link

Synology Photos 1.3 integration #67

Closed wissnia closed 1 year ago

wissnia commented 1 year ago

I got a question. Is the plugin works with version 1.3 of Synology Photos?? Is it tested with that version?

I am wondering if my problem with publishing regards my setup or if it is because I have v1.3 of Photos.

During publish I got 405 HTTP error after an API call to:

DEBUG: Photos_API: LrHttp.post(url='/webapi/query.cgi', API=SYNO.API.Info params='version=1&api=SYNO.API.Info&method=query&query=SYNO.API.,SYNO.Foto.,SYNO.FotoTeam.')
16:30:57
flingo64 commented 1 year ago

Works fine with Photos 1.3.2-0327 Your url seems is missing the servername. It should look like:

21:31:38, DEBUG: Photos_API: LrHttp.post(url='https://example.com/photo/webapi/query.cgi', API=SYNO.API.Info params='version=1&api=SYNO.API.Info&method=query&query=SYNO.API.,SYNO.Foto.,SYNO.FotoTeam.')

Please, check the server address and protocol in the Export/Publsh Service dialog.

wissnia commented 1 year ago

I intentionally removed it. It doesn't work either with IP address or servername of my NAS.

flingo64 commented 1 year ago

It's the very first API call from the plugin, so probably your URL isn't correct. Check what happens if you enter the URL (without the params) in a Browser. You should get back a HTTP 200 with JSON error: {"error":{"code":101},"success":false}

If not, try the URL with default port :5000 (http) or :5001 (https) without path /photo. The plugin will automatically add /?launchApp=Syno.Foto.App... in that case in the dialog. The alias path /photo or an alias port (e.g. 5080/5443) can be configured in DSM Login Portal

flingo64 commented 1 year ago

Make also sure that the DSM account used by the plugin is not configured for 2-Factor-Auth

flingo64 commented 1 year ago

Photos 1.3 is 'officially' tested and supported starting w/ version 7.3.0.

No feedback on last responses, closing the issue.