Commit Graph

18 Commits

Author SHA1 Message Date
Andy Scherzinger 903f0daf23
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-03 11:28:13 +02:00
Louis Chemineau df19108ed7
feat: Allow multiple source folders
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-04-22 17:27:02 +02:00
Louis Chemineau 8f16b065c6
Restrict source folder selection to 1
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-15 16:24:02 +01:00
Louis Chemineau e038644eb1
Add config to select source directories
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-15 16:24:02 +01:00
Maxence Lange da806b3080 add setting 'disable_places'
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-01-18 14:49:18 -01:00
Varun Patil 58d285e7e6 Fix TypeError with invalid coordinates (fix #2187)
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
2023-12-20 11:25:38 +01:00
Louis Chemineau 55778c13ae
Use NC URL to download cities list
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-21 11:45:12 +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
Varun Patil 783888ed66 perf: make geoNameFolder lazy
This class gets injected in DAV and the folder is fetched
without ever being used, causing some useless queries, even
for completely unrelated DAV requests.

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
2023-10-16 17:45:27 -07:00
dependabot[bot] 435fd992e8
Chore(deps-dev): Bump nextcloud/coding-standard from 1.0.0 to 1.1.1
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.0.0 to 1.1.1.
- [Release notes](https://github.com/nextcloud/coding-standard/releases)
- [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/coding-standard/compare/v1.0.0...v1.1.1)

---
updated-dependencies:
- dependency-name: nextcloud/coding-standard
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 16:57:08 +02:00
Louis Chemineau d522af5bb5 Migrate to the new file_metadata column layout
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-03-09 12:38:44 +01:00
Louis Chemineau eac254ed8f
Rename locations to places
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-02-24 08:54:42 +01: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
John Molakvoæ e69199b162
Make sure the default photos folder exists if none
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-10-11 15:41:18 +02:00
Louis Chemineau a2890b03e7 Refactor getting album storage folder
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-10-10 12:23:52 +02:00
Louis Chemineau bb97d6eb84 Apply review suggestions
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-10-10 12:23:52 +02:00
Louis Chemineau ff01726c6b Add public link logic
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-10-10 12:23:52 +02:00
John Molakvoæ a07c06ff69
Implement default Photos folder
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-08-30 11:38:41 +02:00