mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 12:59:42 -07:00
Export photo locations
This commit is contained in:
parent
a649d2ec12
commit
0e44255e6a
1 changed files with 4 additions and 3 deletions
|
@ -936,6 +936,7 @@ class Export(object):
|
||||||
'librarySectionID': None,
|
'librarySectionID': None,
|
||||||
'librarySectionKey': None,
|
'librarySectionKey': None,
|
||||||
'librarySectionTitle': None,
|
'librarySectionTitle': None,
|
||||||
|
'locations': None,
|
||||||
'originallyAvailableAt': partial(helpers.datetime_to_iso, to_date=True),
|
'originallyAvailableAt': partial(helpers.datetime_to_iso, to_date=True),
|
||||||
'parentGuid': None,
|
'parentGuid': None,
|
||||||
'parentIndex': None,
|
'parentIndex': None,
|
||||||
|
@ -1379,7 +1380,7 @@ class Export(object):
|
||||||
}
|
}
|
||||||
_media_info_levels = {
|
_media_info_levels = {
|
||||||
1: [
|
1: [
|
||||||
'media.aspectRatio', 'media.aperture',
|
'locations', 'media.aspectRatio', 'media.aperture',
|
||||||
'media.container', 'media.height', 'media.width',
|
'media.container', 'media.height', 'media.width',
|
||||||
'media.iso', 'media.lens', 'media.make', 'media.model'
|
'media.iso', 'media.lens', 'media.make', 'media.model'
|
||||||
],
|
],
|
||||||
|
@ -1390,7 +1391,7 @@ class Export(object):
|
||||||
3: [
|
3: [
|
||||||
],
|
],
|
||||||
9: [
|
9: [
|
||||||
'media'
|
'locations', 'media'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
return _metadata_levels, _media_info_levels
|
return _metadata_levels, _media_info_levels
|
||||||
|
@ -1934,7 +1935,7 @@ class Export(object):
|
||||||
metadata = {
|
metadata = {
|
||||||
'type': d['type'],
|
'type': d['type'],
|
||||||
'ratingKey': d['ratingKey'],
|
'ratingKey': d['ratingKey'],
|
||||||
'duration': d['duration'],
|
'duration': d.get('duration', 5),
|
||||||
'title': full_title,
|
'title': full_title,
|
||||||
'location': '\n'.join(d['locations']) # Add all locations
|
'location': '\n'.join(d['locations']) # Add all locations
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue