nanostudio-org / nano_photos_provider2

PHP photos provider for nanogallery2
https://nanophotosprovider2.nanostudio.org/
48 stars 12 forks source link

Incorrect metadata text file format example #60

Open nagendra-y opened 11 months ago

nagendra-y commented 11 months ago

If anyone is using metadata text files and its not working this might help.

This is the given example metadata file https://github.com/nanostudio-org/nano_photos_provider2/blob/f737330ab14f3587a83fc91d885534cafd26ba3a/dist/nano_photos_content/berlin1.txt#L1-L2

It doesn't work. Because it looks for a '=' to split https://github.com/nanostudio-org/nano_photos_provider2/blob/f737330ab14f3587a83fc91d885534cafd26ba3a/dist/nano_photos_provider2.json.class.php#L1067-L1068

The key-value in the metadata text file should use '=' instead of a ':' So, I updated the file to

title= Berlin 1
description= Berlin photo 1

and it works.