Skip to content

Commit 3d7fd9e

Browse files
committed
Rename the field to sourceURI
1 parent b439ea8 commit 3d7fd9e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

plexapi/audio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ class Track(
449449
primaryExtraKey (str) API URL for the primary extra for the track.
450450
ratingCount (int): Number of listeners who have scrobbled this track, as reported by Last.fm.
451451
skipCount (int): Number of times the track has been skipped.
452-
source (str): Remote server URL (server://<server_id>/com.plexapp.plugins.library) (remote playlist item only)
452+
sourceURI (str): Remote server URL (server://<server_id>/com.plexapp.plugins.library) (remote playlist item only)
453453
viewOffset (int): View offset in milliseconds.
454454
year (int): Year the track was released.
455455
"""
@@ -484,7 +484,7 @@ def _loadData(self, data):
484484
self.primaryExtraKey = data.attrib.get('primaryExtraKey')
485485
self.ratingCount = utils.cast(int, data.attrib.get('ratingCount'))
486486
self.skipCount = utils.cast(int, data.attrib.get('skipCount'))
487-
self.source = data.attrib.get('source') # remote playlist item
487+
self.sourceURI = data.attrib.get('source') # remote playlist item
488488
self.viewOffset = utils.cast(int, data.attrib.get('viewOffset', 0))
489489
self.year = utils.cast(int, data.attrib.get('year'))
490490

plexapi/photo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +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)
183+
sourceURI (str): Remote server URL (server://<server_id>/com.plexapp.plugins.library) (remote playlist item only)
184184
summary (str): Summary of the photo.
185185
tags (List<:class:`~plexapi.media.Tag`>): List of tag objects.
186186
thumb (str): URL to thumbnail image (/library/metadata/<ratingKey>/thumb/<thumbid>).
@@ -219,7 +219,7 @@ def _loadData(self, data):
219219
self.parentThumb = data.attrib.get('parentThumb')
220220
self.parentTitle = data.attrib.get('parentTitle')
221221
self.ratingKey = utils.cast(int, data.attrib.get('ratingKey'))
222-
self.source = data.attrib.get('source') # remote playlist item
222+
self.sourceURI = data.attrib.get('source') # remote playlist item
223223
self.summary = data.attrib.get('summary')
224224
self.tags = self.findItems(data, media.Tag)
225225
self.thumb = data.attrib.get('thumb')

plexapi/video.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class Movie(
369369
ratings (List<:class:`~plexapi.media.Rating`>): List of rating objects.
370370
roles (List<:class:`~plexapi.media.Role`>): List of role objects.
371371
similar (List<:class:`~plexapi.media.Similar`>): List of Similar objects.
372-
source (str): Remote server URL (server://<server_id>/com.plexapp.plugins.library) (remote playlist item only)
372+
sourceURI (str): Remote server URL (server://<server_id>/com.plexapp.plugins.library) (remote playlist item only)
373373
studio (str): Studio that created movie (Di Bonaventura Pictures; 21 Laps Entertainment).
374374
tagline (str): Movie tag line (Back 2 Work; Who says men can't change?).
375375
theme (str): URL to theme resource (/library/metadata/<ratingkey>/theme/<themeid>).
@@ -413,7 +413,7 @@ def _loadData(self, data):
413413
self.ratings = self.findItems(data, media.Rating)
414414
self.roles = self.findItems(data, media.Role)
415415
self.similar = self.findItems(data, media.Similar)
416-
self.source = data.attrib.get('source') # remote playlist item
416+
self.sourceURI = data.attrib.get('source') # remote playlist item
417417
self.studio = data.attrib.get('studio')
418418
self.tagline = data.attrib.get('tagline')
419419
self.theme = data.attrib.get('theme')
@@ -900,7 +900,7 @@ class Episode(
900900
ratings (List<:class:`~plexapi.media.Rating`>): List of rating objects.
901901
roles (List<:class:`~plexapi.media.Role`>): List of role objects.
902902
skipParent (bool): True if the show's seasons are set to hidden.
903-
source (str): Remote server URL (server://<server_id>/com.plexapp.plugins.library) (remote playlist item only)
903+
sourceURI (str): Remote server URL (server://<server_id>/com.plexapp.plugins.library) (remote playlist item only)
904904
viewOffset (int): View offset in milliseconds.
905905
writers (List<:class:`~plexapi.media.Writer`>): List of writers objects.
906906
year (int): Year the episode was released.
@@ -943,7 +943,7 @@ def _loadData(self, data):
943943
self.ratings = self.findItems(data, media.Rating)
944944
self.roles = self.findItems(data, media.Role)
945945
self.skipParent = utils.cast(bool, data.attrib.get('skipParent', '0'))
946-
self.source = data.attrib.get('source') # remote playlist item
946+
self.sourceURI = data.attrib.get('source') # remote playlist item
947947
self.viewOffset = utils.cast(int, data.attrib.get('viewOffset', 0))
948948
self.writers = self.findItems(data, media.Writer)
949949
self.year = utils.cast(int, data.attrib.get('year'))

0 commit comments

Comments
 (0)