From 360d69146d796bb54fc5e0ccf50c36bb25064fcc Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Thu, 29 Sep 2016 00:35:58 -0500 Subject: [PATCH] Rename new method, keep current working method Moved major modifications to Playback branch. --- resources/lib/playutils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index 896b82ef..907d4d21 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -33,7 +33,7 @@ class PlayUtils(): self.doUtils = downloadutils.DownloadUtils().downloadUrl - def getPlayUrl(self): + def getPlayUrlNew(self): ''' New style to retrieve the best playback method based on sending the profile to the server Based on capabilities the correct path is returned, including livestreams that need to be opened by the server @@ -62,7 +62,7 @@ class PlayUtils(): return playurl - def getPlayUrlOld(self): + def getPlayUrl(self): playurl = None @@ -461,8 +461,7 @@ class PlayUtils(): mediaSource = self.getLiveStream(pbinfo["PlaySessionId"], mediaSource) return mediaSource - - + def getOptimalMediaSource(self, mediasources): ''' Select the best possible mediasource for playback