fixes seek

pull/1/head
DiMartinoXBMC 2015-08-06 00:51:32 +03:00
parent 92b56ca51f
commit 2b35dd41f4
2 changed files with 11 additions and 11 deletions

View File

@ -371,17 +371,17 @@ class BTClientPlayer(xbmc.Player):
log('[onPlayBackStopped]: '+(str(("video", "stop", self.display_name))))
def onPlayBackSeek(self):
def onPlayBackSeek(self, x ,y):
log('[onPlayBackSeek]: '+(str(("video", "seek", self.display_name))))
self.pause()
self.buffer()
self.play()
xbmc.Player().pause()
if self.buffer():
xbmc.Player().play()
def onPlayBackSeekChapter(self):
def onPlayBackSeekChapter(self, x):
log('[onPlayBackSeek]: '+(str(("video", "seek", self.display_name))))
self.pause()
self.buffer()
self.play()
xbmc.Player().pause()
if self.buffer():
xbmc.Player().play()
@contextmanager
def attach(self, callback, *events):

View File

@ -1753,7 +1753,7 @@ def check_network_advancedsettings():
path=xbmc.translatePath('special://profile/advancedsettings.xml')
updated=False
#path='''C:\\Users\\Admin\\AppData\\Roaming\\Kodi\\userdata\\advancedsettings.xml'''
settings={'buffermode':2, 'curlclienttimeout':100, 'cachemembuffersize':252420, 'readbufferfactor':5}
settings={'buffermode':2, 'curlclienttimeout':30, 'cachemembuffersize':252420, 'readbufferfactor':5}
add, update = {}, {}
if not os.path.exists(path):
@ -1761,7 +1761,7 @@ def check_network_advancedsettings():
file_cont='''<advancedsettings>
<network>
<buffermode>2</buffermode>
<curlclienttimeout>100</curlclienttimeout>
<curlclienttimeout>30</curlclienttimeout>
<cachemembuffersize>252420</cachemembuffersize>
<readbufferfactor>5</readbufferfactor>
</network>
@ -1778,7 +1778,7 @@ def check_network_advancedsettings():
'''<advancedsettings>
<network>
<buffermode>2</buffermode>
<curlclienttimeout>100</curlclienttimeout>
<curlclienttimeout>30</curlclienttimeout>
<cachemembuffersize>252420</cachemembuffersize>
<readbufferfactor>5</readbufferfactor>
</network>