1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
Commit Graph

14 Commits

Author SHA1 Message Date
grasdk
75d81d42bd
Feature/caption and title (#14)
* reading caption and title from several tags with several tests added
minor bugfix for date conversion to MS
optimization: break sidecar loop, when first sidecar is found
2024-03-31 14:57:20 +02:00
gras
9aab44b7af Removed 0 as a rating, since it means unrated. 2024-03-30 21:23:10 +01:00
gras
b071b6daae xmp-rating valid values now 1-5. 0 means "unrated" and the attribute does not exist with value 0 2024-03-30 21:07:41 +01:00
grasdk
1514662b8d
Feature/metadata sidecar reading cleanup (#13)
* Removed the SideCar Type to make reading sidecar data just as generic as reading the embedded exif data

* Moved metadata-mapping into separate function to prepare for reuse

* Most sidecar metadata is now read with the same function as embedded metadata (for photos). Fixed a bug with rating: 0 being ignored

* added new test for special chars and timezone

* merge incoming changes

* xmp rating fix - 0 is a value. prep for xmp timestamp handling

* refactored mapping of metadata into smaller functions

* consolidated GPS coordinate mapping

* simplification of sidecar date reading logic

* Moved date mapping code into one function - fixed testdata - did not yet resolve offset bug

* CreationDateOffset is now mapped from Sidecar timestamps. Tests updated accordingly.


Total: changed sidecar reading for video to shared reader and fixed tests accordingly (more data is read now)
2024-03-30 13:58:06 +01:00
Martin Kampas
8517430a1b Deal with rating missing in XMP sidecars
Avoid getting Rating of 0 when rating metadata is not included in a
sidecar.
2024-03-23 12:44:30 +01:00
Martin Kampas
1d1df01a68 Read GPS coordinates from XMP sidecar too 2024-03-22 15:44:22 +01:00
grasdk
35839ef732 test-fixing 2024-03-14 10:41:41 +01:00
Martin Kampas
6a52d84881 Add tests for reading sidecar files
Thanks grasdk for providing the .json files!

Co-authored-by: grasdk <chrisc.gigamail@gmail.com>
2024-03-13 20:03:26 +01:00
kagahd
d8c064857f
re-enable unit test that keywords from photo are merged with keywords from sidecar 2024-03-12 08:48:55 +01:00
grasdk
390e24a2c4 Added read of CreationDate to sidecar and fixed tests 2024-03-11 23:47:44 +01:00
kagahd
a2fc61320d
resolve merge conflicts for a second time due to bug in PR #829 2024-03-11 08:45:44 +01:00
kagahd
fb65910993
resolve merge conflicts due to PR #829 2024-03-04 12:21:39 +01:00
kagahd
917b738aa8
add two more unit tests 2024-02-28 18:50:19 +01:00
kagahd
8702586e9e
add unit tests 2024-02-27 18:53:53 +01:00