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)))) log('[onPlayBackStopped]: '+(str(("video", "stop", self.display_name))))
def onPlayBackSeek(self): def onPlayBackSeek(self, x ,y):
log('[onPlayBackSeek]: '+(str(("video", "seek", self.display_name)))) log('[onPlayBackSeek]: '+(str(("video", "seek", self.display_name))))
self.pause() xbmc.Player().pause()
self.buffer() if self.buffer():
self.play() xbmc.Player().play()
def onPlayBackSeekChapter(self): def onPlayBackSeekChapter(self, x):
log('[onPlayBackSeek]: '+(str(("video", "seek", self.display_name)))) log('[onPlayBackSeek]: '+(str(("video", "seek", self.display_name))))
self.pause() xbmc.Player().pause()
self.buffer() if self.buffer():
self.play() xbmc.Player().play()
@contextmanager @contextmanager
def attach(self, callback, *events): def attach(self, callback, *events):

View File

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