alvistar / immich-albums

Create immich albums from folder structure
MIT License
38 stars 7 forks source link

feat: update to api v1.103.1 #14

Closed muhlba91 closed 4 weeks ago

muhlba91 commented 2 months ago

the immich api seems to have changed and the used /assets endpoint was removed. instead, i found the /search/metadata endpoint which worked in my case.

unfortunately, the openapi-generator is producing an incorrect POST body for this endpoint and maps the originalPath to the wrong argument. hence, i had to manually adjust the generated file - maybe you can find the reason for this?

i hope this PR helps in updating to the newest immich api - awesome tool btw! 👍

changes to the generated code: https://github.com/alvistar/immich-albums/pull/14/files#diff-d195aca73182cec5d02ba295605e37b48e39415b27333cd731fe5838f0d29623R1081-R1082

changes to im.py using the new /search/metadata endpoint: https://github.com/alvistar/immich-albums/pull/14/files#diff-2164007e163c79e7a7764c5eed80977c4e8c466b9c1f829325ef1b257a05c31fL42-R49

alvistar commented 4 weeks ago

Updated to last version. Thanks for the pull request