From 3b3f9f7bba99d4c2aec6ef3a6e9538ac25a64020 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 9 May 2015 01:44:02 -0500 Subject: [PATCH] First attempt at supporting split movies. --- resources/lib/PlaybackUtils.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/lib/PlaybackUtils.py b/resources/lib/PlaybackUtils.py index 59aa8642..0d25fa71 100644 --- a/resources/lib/PlaybackUtils.py +++ b/resources/lib/PlaybackUtils.py @@ -48,6 +48,18 @@ class PlaybackUtils(): except: return + # For split movies + if u'PartCount' in result: + partcount = result[u'PartCount'] + # Get additional parts/playurl + url = "{server}/mediabrowser/Videos/%s/AdditionalParts" % id + parts = self.downloadUtils.downloadUrl(url) + partsId = [id] + for part in parts[u'Items']: + partId = part[u'Id'] + partsId.append(partId) + self.PLAYAllItems(partsId, startPositionTicks=None) + userData = result['UserData'] resume_result = 0 seekTime = 0