mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 21:08:27 +00:00
fix another bug that was hidden
This commit is contained in:
parent
4e6e2509b6
commit
367929a97e
4 changed files with 7 additions and 7 deletions
|
@ -246,7 +246,7 @@ class Track(Audio, Playable):
|
|||
sessionKey (int): Session Key (active sessions only).
|
||||
username (str): Username of person playing this track (active sessions only).
|
||||
player (str): :class:`~plexapi.client.PlexClient` for playing track (active sessions only).
|
||||
transcodeSession (None): :class:`~plexapi.media.TranscodeSession` for playing
|
||||
transcodeSessions (None): :class:`~plexapi.media.TranscodeSession` for playing
|
||||
track (active sessions only).
|
||||
"""
|
||||
TAG = 'Track'
|
||||
|
|
|
@ -440,7 +440,7 @@ class Playable(object):
|
|||
username (str): Username of the person playing this item (for active sessions).
|
||||
players (:class:`~plexapi.client.PlexClient`): Client objects playing this item (for active sessions).
|
||||
session (:class:`~plexapi.media.Session`): Session object, for a playing media file.
|
||||
transcodeSession (:class:`~plexapi.media.TranscodeSession`): Transcode Session object
|
||||
transcodeSessions (:class:`~plexapi.media.TranscodeSession`): Transcode Session object
|
||||
if item is being transcoded (None otherwise).
|
||||
viewedAt (datetime): Datetime item was last viewed (history).
|
||||
playlistItemID (int): Playlist item ID (only populated for :class:`~plexapi.playlist.Playlist` items).
|
||||
|
|
|
@ -103,7 +103,7 @@ def test_audio_Album_tracks(album):
|
|||
assert utils.is_metadata(track.thumb, contains='/thumb/')
|
||||
assert track.title == 'Holy Moment'
|
||||
assert track.titleSort == 'Holy Moment'
|
||||
assert track.transcodeSession is None
|
||||
assert not track.transcodeSessions
|
||||
assert track.type == 'track'
|
||||
assert utils.is_datetime(track.updatedAt)
|
||||
assert track.username is None
|
||||
|
@ -138,7 +138,7 @@ def test_audio_Album_track(album, track=None):
|
|||
assert utils.is_metadata(track.thumb, contains='/thumb/')
|
||||
assert track.title == 'Holy Moment'
|
||||
assert track.titleSort == 'Holy Moment'
|
||||
assert track.transcodeSession is None
|
||||
assert not track.transcodeSessions
|
||||
assert track.type == 'track'
|
||||
assert utils.is_datetime(track.updatedAt)
|
||||
assert track.username is None
|
||||
|
@ -221,7 +221,7 @@ def test_audio_Track_attrs(album):
|
|||
assert utils.is_metadata(track.thumb, contains='/thumb/')
|
||||
assert track.title == 'Holy Moment'
|
||||
assert track.titleSort == 'Holy Moment'
|
||||
assert track.transcodeSession is None
|
||||
assert not track.transcodeSessions
|
||||
assert track.type == 'track'
|
||||
assert utils.is_datetime(track.updatedAt)
|
||||
assert track.username is None
|
||||
|
|
|
@ -109,7 +109,7 @@ def test_video_Movie_attrs(movies):
|
|||
assert utils.is_thumb(movie.thumb)
|
||||
assert movie.title == 'Sita Sings the Blues'
|
||||
assert movie.titleSort == 'Sita Sings the Blues'
|
||||
assert movie.transcodeSession is None
|
||||
assert not movie.transcodeSessions
|
||||
assert movie.type == 'movie'
|
||||
assert movie.updatedAt > datetime(2017, 1, 1)
|
||||
assert movie.userRating is None
|
||||
|
@ -431,7 +431,7 @@ def test_video_Episode_attrs(episode):
|
|||
assert utils.is_metadata(episode.thumb, contains='/thumb/')
|
||||
assert episode.title == 'Winter Is Coming'
|
||||
assert episode.titleSort == 'Winter Is Coming'
|
||||
assert episode.transcodeSession is None
|
||||
assert not episode.transcodeSessions
|
||||
assert episode.type == 'episode'
|
||||
assert utils.is_datetime(episode.updatedAt)
|
||||
assert episode.username is None
|
||||
|
|
Loading…
Add table
Reference in a new issue