Closed fdenivac closed 5 months ago
Hello. Thank you for the PR ill try to see if i can remove photo2. That is a great find and help!
did you create a PR with desktop app or web?
Hi, this PR was created with Visual Studio Code on Windows. But, why this question ? Is it a problem ?Le 13 mars 2024 à 23:21, Renato @.***> a écrit : did you create a PR with desktop app or web?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
Hi, I was just asking because i was trying to remove the files that u mentioned from the PR but I can't manage. But let me investigate further
Hi, I was just asking because i was trying to remove the files that u mentioned from the PR but I can't manage. But let me investigate further
I'm sorry to give you so much work. But I see 2 solutions: 1- leave the photos2.py file in the project, I have no problem with that. I suggested this just to avoid 2 different implementations of the photos API in the same project, but why not? 2- reject/ignore this PR, and I can send you a patch file based on a diff of the latest version of synology-api and mine
I will delete this PR as is now broken, if you can PR again would be great thank you
Hi, Synology Photos API can returns, in addition to error code, some details in json format : { "error": { "code":120, "errors": { "name":"sort_by", "reason":"condition" } }, "success":false }
This PR propose to return error details in PhotosError exception.
The photos2.py file is a new implementation of the Photo class, originally based on photos.py, refactored, completed and finally renamed for avoid API breaks. In fact, it is not necessary to add this file in synology-api (it is already included in my project https://github.com/fdenivac/synology-photos-explorer), but I don't know how to remove it from this PR! (idem for .gitignore)
For a quick test with standard API : import os from dotenv import load_dotenv from synology_api.photos import Photos from synology_api.exceptions import PhotosError