debug for inpos

pull/3/head
DiMartinoXBMC 2016-03-13 12:27:20 +03:00
parent a457d26395
commit a83699f477
1 changed files with 8 additions and 1 deletions

View File

@ -290,7 +290,8 @@ class AnteoPlayer(xbmc.Player):
#self.torrent = AnteoLoader(self.userStorageDirectory, self.torrentUrl, self.torrentFilesDirectory) #self.torrent = AnteoLoader(self.userStorageDirectory, self.torrentUrl, self.torrentFilesDirectory)
self.init() self.init()
self.setup_engine() self.setup_engine()
with closing(self.engine): #with closing(self.engine):
try:
self.engine.start(self.contentId) self.engine.start(self.contentId)
self.setup_nextep() self.setup_nextep()
while True: while True:
@ -315,6 +316,12 @@ class AnteoPlayer(xbmc.Player):
continue continue
log('['+author+'Player]: ************************************* NO! break') log('['+author+'Player]: ************************************* NO! break')
break break
except Exception, e:
import traceback
log('['+author+'Player]: ' + str(e))
log(traceback.format_exc())
finally:
self.engine.close()
xbmc.Player().stop() xbmc.Player().stop()