Commit Graph

17 Commits

Author SHA1 Message Date
Louis Chemineau a6c2e30f58
feat: Check download attribute when fetching previews
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-04-18 10:18:53 +02:00
Louis Chemineau 925cf21d1b
Fix psalm
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-09 23:37:24 +01:00
Louis Chemineau a6902c17d9
Fix psalm
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-09 18:29:41 +01:00
Louis Chemineau a87c19ee24
Use new metadata API for providers
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-09 13:17:12 +01:00
Louis Chemineau 9623111d9f Update metadata stub
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-04-12 17:43:23 +02:00
Louis Chemineau d94f30cc09 Add commands and listeners to generate location data of files:
The location data is stored inside `oc_files_metadata`.

- `occ photos:update-1000-cities` to update the cities1000 file.
- `occ photos:map-media-to-location`to map picture coordinates to a location

- `ReverseGeoCoderService` download the necessary files and build the `KDTree`
- `UpdateReverseGeocodingFilesCommand` command to allow to manually create the needed reverse geocoding files
- `MediaLocationManager` to manager the location mappings
- `MapMediaToLocationCommand` command to manually trigger location data mapping. Useful for pre-existing pictures.
- `LocationManagerNodeEventListener` to react to node, user and share events.
- `MapMediaToLocationJob` to reduce the load in event listeners

```php
                                          ┌─────────────────────┐
                            ┌────────────►│MapMediaToLocationJob│
                            │             └─────────┬───────────┘
                            │                       │
   ┌────────────────────────┴───────┐               │
   │LocationManagerNodeEventListener├──┐            ▼
   └────────────────────────────────┘  │  ┌────────────────────┐     ┌──────────────┐
                                       ├─►│MediaLocationManager├────►│LocationMapper│
   ┌─────────────────────────┐         │  └─────────┬──────────┘     └──────────────┘
   │MapMediaToLocationCommand├─────────┘            │
   └─────────────────────────┘                      │
                                                    ▼
   ┌──────────────────────────────────┐   ┌──────────────────────┐
   │UpdateReverseGeocodingFilesCommand├──►│ReverseGeoCoderService│
   └──────────────────────────────────┘   └──────────────────────┘
```

Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-02-22 15:44:33 +01:00
Marcel Klehr dee1b276b2 fix(tags performance): Cache tag counts on server and load them using initial state
... and only fetch file lists when the corresponding tag is visible

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-01-30 13:57:50 +01:00
Louis Chemineau 142fe83638 Make public pages work
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-10-10 12:23:52 +02:00
Carl Schwan 33462ff40c
Use stub implementation
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-08-23 15:37:57 +02:00
Louis Chemineau c8bf3a52d6 Add Albums view
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-08-22 20:04:58 +02:00
Robin Appelman f4dea80783 store album location and last added photo
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-08-22 20:03:52 +02:00
Robin Appelman 4aa8a0a78f retreive more metadata for album files
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-08-22 20:03:51 +02:00
Robin Appelman 10f44aacc8 add album database management bits
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-08-22 20:03:51 +02:00
John Molakvoæ be2a1097cf
Update php styling for 7.4
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-05-10 08:44:27 +02:00
Marcel Klehr 825e01d721 Implement .nomedia/.noimage filter
for Timeline and Tags

fixes #234

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2022-03-17 14:06:58 +01:00
Roeland Jago Douma 3c16d2785c
Some fixes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-01-04 13:04:02 +01:00
Roeland Jago Douma 7527a16334
Add psalm baseline
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-01-04 13:01:41 +01:00