Updated README.md

This commit is contained in:
Rhet Turnbull
2020-05-15 14:41:22 -07:00
parent bd9d5a26f3
commit 11d368a69c
2 changed files with 15 additions and 9 deletions

View File

@@ -394,6 +394,9 @@ Substitution Description
folder folder
{keyword} Keyword(s) assigned to photo {keyword} Keyword(s) assigned to photo
{person} Person(s) / face(s) in a photo {person} Person(s) / face(s) in a photo
{label} Image categorization label associated with a photo
(Photos 5 only)
{label_normalized} All lower case version of 'label' (Photos 5 only)
``` ```
Example: export all photos to ~/Desktop/export group in folders by date created Example: export all photos to ~/Desktop/export group in folders by date created
@@ -1323,7 +1326,7 @@ The following substitutions are availabe for use with `PhotoInfo.render_template
| Substitution | Description | | Substitution | Description |
|--------------|-------------| |--------------|-------------|
|{name}|Filename of the photo| |{name}|Current filename of the photo|
|{original_name}|Photo's original filename when imported to Photos| |{original_name}|Photo's original filename when imported to Photos|
|{title}|Title of the photo| |{title}|Title of the photo|
|{descr}|Description of the photo| |{descr}|Description of the photo|
@@ -1355,8 +1358,11 @@ The following substitutions are availabe for use with `PhotoInfo.render_template
|{place.address.country}|Country name of the postal address, e.g. 'United States'| |{place.address.country}|Country name of the postal address, e.g. 'United States'|
|{place.address.country_code}|ISO country code of the postal address, e.g. 'US'| |{place.address.country_code}|ISO country code of the postal address, e.g. 'US'|
|{album}|Album(s) photo is contained in| |{album}|Album(s) photo is contained in|
|{folder_album}|Folder path + album photo is contained in. e.g. 'Folder/Subfolder/Album' or just 'Album' if no enclosing folder|
|{keyword}|Keyword(s) assigned to photo| |{keyword}|Keyword(s) assigned to photo|
|{person}|Person(s) / face(s) in a photo| |{person}|Person(s) / face(s) in a photo|
|{label}|Image categorization label associated with a photo (Photos 5 only)|
|{label_normalized}|All lower case version of 'label' (Photos 5 only)|
### Utility Functions ### Utility Functions

View File

@@ -1,6 +1,6 @@
""" Builds the template table in markdown format for README.md """ """ Builds the template table in markdown format for README.md """
from osxphotos.template import ( from osxphotos.photoinfo.template import (
TEMPLATE_SUBSTITUTIONS, TEMPLATE_SUBSTITUTIONS,
TEMPLATE_SUBSTITUTIONS_MULTI_VALUED, TEMPLATE_SUBSTITUTIONS_MULTI_VALUED,
) )