Commit graph

2586 commits

Author SHA1 Message Date
Michael Mayer
cc12f3f457 Auth: Improve sanitization of usernames and handles
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-15 22:41:59 +01:00
Michael Mayer
9161144c03 i18n: Add Lower() function and add code comments
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-15 18:19:03 +01:00
Michael Mayer
ef70992657 Config: Code clean-up
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-15 17:05:05 +01:00
Michael Mayer
cad0ecaa6a Config: Use fixed users folder name in the storage path
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 23:17:12 +01:00
Michael Mayer
fb1744b820 Config: Fix UserStoragePath()
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 22:19:16 +01:00
Michael Mayer
addc5e8251 Auth: Refactor users path configuration and base path default
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 21:47:14 +01:00
Michael Mayer
3755421945 FFmpeg: Update AVC convert command test #3284
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 18:30:48 +01:00
Michael Mayer
157c6c723a FFmpeg: Allow selection of specific video and audio streams #3284
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 18:00:55 +01:00
Michael Mayer
9ab833c2ec Auth: Improve username validation and parsing
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-14 16:36:30 +01:00
ghostwheel
9762150da6 Changed audio conversion to only use one stream
0:a means take all audio streams of first file. 0🅰️0 means first stream of first file. 0🅰️0? means first audio stream of first file if available.
2023-03-14 15:32:37 +01:00
ghostwheel
7e843808ca Added map for audio stream, too
It seems that if -map is used for video (-map 0✌️0) then a map is also needed for audio, otherwise no audio is produced.
2023-03-14 07:15:59 +01:00
Michael Mayer
cc97759806 Moments: Change default sort order in the overview to "newest" #3280
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-13 22:17:23 +01:00
Michael Mayer
88367b4ff7 Auth: Refactor user model and path validation #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-13 17:52:48 +01:00
Michael Mayer
36d62b5506 Auth: Refactor user model and improve validation #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-13 17:36:56 +01:00
Michael Mayer
5b73101442 Auth: Refactor user roles and auth providers in entity model #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-13 16:04:37 +01:00
Michael Mayer
c1efe61b92 Settings: Move download settings to general tab #449
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-11 15:34:59 +01:00
Michael Mayer
dcffa2848a API: Add action and user context to indexing events #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-11 14:09:00 +01:00
Michael Mayer
0e3fb7dc75 Auth: Fix password API handler if uid does not match #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-10 17:16:43 +01:00
Michael Mayer
a425027a9b Auth: Prevent unauthorized users from using the application #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-10 13:20:16 +01:00
Michael Mayer
8df444dfd7 Auth: Refactor session API #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-10 12:15:10 +01:00
Michael Mayer
ad5e9b2e21 User Details: Increase size of bio field, add about to UI #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-10 10:21:46 +01:00
Michael Mayer
654b41afe5 Auth: Prevent duplicate usernames when renaming accounts #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 19:56:07 +01:00
Michael Mayer
0a5dce5aeb Auth: Refactor sessions API and model #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 18:45:04 +01:00
Michael Mayer
50913e301c Auth: Prevent duplicate super admin accounts from being created #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 15:59:08 +01:00
Michael Mayer
d8ab9616a5 Auth: Refactor user management API and CLI commands #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-09 15:12:10 +01:00
Michael Mayer
60162b3fc5 Auth: Refactor user management API and CLI commands #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-08 23:30:39 +01:00
Michael Mayer
0fbb4043c6 Faces: Run background worker only when data has been updated #3124
This may reduce server load and prevent disks from spinning up.
We welcome tests reports!

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-03-08 12:42:57 +01:00
Dan Kasak
add976881a Fix only_full_group_by compilation error in SQL - #3216 2023-03-04 16:02:00 +01:00
connr
189fae6daf Fix Duration Compare in photos estimate
Remove the conversion to hours which provides incorrect duration comapre result
2023-03-03 16:21:21 +01:00
Michael Mayer
6e144fe13a Config: Allow everyone to set their own login wallpaper
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2023-03-02 16:52:05 +01:00
Micah
240393d8b6 Update convert.go
When I upgraded my phone to the Google Pixel 7, I noticed that the videos it takes have an extra video stream in them for their compressed HVC1 implementation. This means that all software transcoding of that format would fail, as it was transcoding the wrong video stream. This alteration fixed the issue for me, and will likely avoid video files with multiple video streams causing issues in the future.
2023-03-02 14:14:31 +01:00
Michael Mayer
a67cb10055 Config: Allow to increase the resolution limit at your own risk
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2023-02-27 15:29:03 +01:00
Michael Mayer
2bf6b2a7f6 Faces: Add embeddings test cases #3124
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-24 14:03:13 +01:00
Michael Mayer
65c287a598 Purge: Improve logging and return number of index updates #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 18:33:50 +01:00
Michael Mayer
3c9b309ea9 Purge: Reduce wait times #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 05:21:22 +01:00
Michael Mayer
2aabeb863e Index: Refactor related file handling and logs #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 05:10:59 +01:00
Michael Mayer
9362604853 Index: Refactor file size check #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 04:31:24 +01:00
Michael Mayer
5b727dd86a Index: Improve limit checks and logging #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 04:11:09 +01:00
Michael Mayer
668395909d Index: Skip updates if there are no changes #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 03:45:58 +01:00
Michael Mayer
242c8c54b8 Index: Skip updates if there are no changes #3227
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-23 01:06:52 +01:00
Michael Mayer
16f081444b Download as Zip: Include hidden files e.g. in review or broken
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 23:14:43 +01:00
Michael Mayer
1cc64cc5e6 WebDAV: Fix upload with updated client library #2267
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 21:39:40 +01:00
Michael Mayer
e1b955a35d WebP: Improve video API logging #3197 #668
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 21:38:25 +01:00
Michael Mayer
b44b8d52c1 WebP: Add support for indexing and playing animations #3197 #668
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 20:58:21 +01:00
Michael Mayer
eaff0abb6d Videos: Index and display durations of less than one second #3224
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 16:33:33 +01:00
Michael Mayer
4451447bdd Metadata: Automatically detect scans based on metadata #322
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-22 16:21:26 +01:00
Michael Mayer
4bd632881b JPEG: Try to fix all files with "invalid JPEG format" error #1673 #2463
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 17:45:35 +01:00
Michael Mayer
b855922283 JPEG: Automatically re-encode broken image files #1673 #2463 #2557
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 13:31:30 +01:00
Michael Mayer
7652fbd598 Convert: Update test function name #1310 #1612 #1747
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 11:41:24 +01:00
Michael Mayer
053a67f1e4 TIFF: Convert unsupported files with ImageMagick #1310 #1612 #1747
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-02-21 11:39:49 +01:00