synology-api icon indicating copy to clipboard operation
synology-api copied to clipboard

Cannot to list photos

Open txemi opened this issue 9 months ago • 3 comments

Describe the bug Cannot list photos from synology photos using this libray. Folders and other informations work fine.

To Reproduce Example code with showcase here: https://github.com/txemi/synology_api_examples

  • One example crashes trying to list photos
  • Other shows that folders can be listed, not photos

Expected behavior Get a list of photos

Desktop (please complete the following information):

  • OS: Last Ubuntu LTS
  • Browser NA
  • Version NA

txemi avatar Apr 09 '25 15:04 txemi

Hi txemi,

I have to check better as is don't use photos api. I will look into it. Tnx for reporting

N4S4 avatar Apr 11 '25 20:04 N4S4

Hi N4S4, after reviewing synology photos REST API I am starting to doubt if it is a N4S4 library limitation or a not implemented feature in REST API instead.

txemi avatar Apr 13 '25 16:04 txemi

Make sure you are specifying the folder_id param to the function.

In your implementation you are only passing limit and offset, try passing the folder_id corresponding to the folder from which you want to retrieve the files.

joeperpetua avatar Apr 14 '25 11:04 joeperpetua