@@ -79,7 +79,7 @@ def markUnwatched(self):
7979
8080
8181@utils .registerPlexObject
82- class Movie (Video , Playable ):
82+ class Movie (Playable , Video ):
8383 """ Represents a single Movie.
8484
8585 Attributes:
@@ -115,14 +115,18 @@ class Movie(Video, Playable):
115115 """
116116 TAG = 'Video'
117117 TYPE = 'movie'
118- _include = '?checkFiles=1&includeExtras=1&includeRelated=1&includeRelatedCount=5&includeOnDeck=1&includeChapters=1&includePopularLeaves=1&includeConcerts=1&includePreferences=1'
118+ _include = ('?checkFiles=1&includeExtras=1&includeRelated=1'
119+ '&includeOnDeck=1&includeChapters=1&includePopularLeaves=1'
120+ '&includeConcerts=1&includePreferences=1' )
121+
119122
120123 def _loadData (self , data ):
121124 """ Load attribute values from Plex XML response. """
122125 Video ._loadData (self , data )
123126 Playable ._loadData (self , data )
124127
125- self .key = data .attrib .get ('key' ) + self ._include
128+ self .key = data .attrib .get ('key' )
129+ self ._details_key = self .key + self ._include
126130 self .art = data .attrib .get ('art' )
127131 self .audienceRating = utils .cast (float , data .attrib .get ('audienceRating' ))
128132 self .audienceRatingImage = data .attrib .get ('audienceRatingImage' )
@@ -442,7 +446,7 @@ def download(self, savepath=None, keep_orginal_name=False, **kwargs):
442446
443447
444448@utils .registerPlexObject
445- class Episode (Video , Playable ):
449+ class Episode (Playable , Video ):
446450 """ Represents a single Shows Episode.
447451
448452 Attributes:
@@ -476,11 +480,15 @@ class Episode(Video, Playable):
476480 """
477481 TAG = 'Video'
478482 TYPE = 'episode'
483+ _include = ('?checkFiles=1&includeExtras=1&includeRelated=1'
484+ '&includeOnDeck=1&includeChapters=1&includePopularLeaves=1'
485+ '&includeConcerts=1&includePreferences=1' )
479486
480487 def _loadData (self , data ):
481488 """ Load attribute values from Plex XML response. """
482489 Video ._loadData (self , data )
483490 Playable ._loadData (self , data )
491+ self ._details_key = self .key + self ._include
484492 self ._seasonNumber = None # cached season number
485493 self .art = data .attrib .get ('art' )
486494 self .chapterSource = data .attrib .get ('chapterSource' )
@@ -509,6 +517,7 @@ def _loadData(self, data):
509517 self .writers = self .findItems (data , media .Writer )
510518 self .labels = self .findItems (data , media .Label )
511519 self .collections = self .findItems (data , media .Collection )
520+ self .chapters = self .findItems (data , media .Chapter )
512521
513522 def __repr__ (self ):
514523 return '<%s>' % ':' .join ([p for p in [
0 commit comments