Skip to content

Commit b439ea8

Browse files
committed
Add source to Photo
1 parent c4c2d03 commit b439ea8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plexapi/photo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ class Photo(
180180
parentThumb (str): URL to photo album thumbnail image (/library/metadata/<parentRatingKey>/thumb/<thumbid>).
181181
parentTitle (str): Name of the photo album for the photo.
182182
ratingKey (int): Unique key identifying the photo.
183+
source (str): Remote server URL (server://<server_id>/com.plexapp.plugins.library) (remote playlist item only)
183184
summary (str): Summary of the photo.
184185
tags (List<:class:`~plexapi.media.Tag`>): List of tag objects.
185186
thumb (str): URL to thumbnail image (/library/metadata/<ratingKey>/thumb/<thumbid>).
@@ -218,6 +219,7 @@ def _loadData(self, data):
218219
self.parentThumb = data.attrib.get('parentThumb')
219220
self.parentTitle = data.attrib.get('parentTitle')
220221
self.ratingKey = utils.cast(int, data.attrib.get('ratingKey'))
222+
self.source = data.attrib.get('source') # remote playlist item
221223
self.summary = data.attrib.get('summary')
222224
self.tags = self.findItems(data, media.Tag)
223225
self.thumb = data.attrib.get('thumb')

0 commit comments

Comments
 (0)