Merge pull request #35 from srg70/master
Уменьшена просадка скорости между буфером и просмотром для старого плеера
This commit is contained in:
		
						commit
						0d398c9feb
					
				@ -428,7 +428,7 @@ class Libtorrent:
 | 
				
			|||||||
                       #'storage_mode': self.lt.storage_mode_t(1),
 | 
					                       #'storage_mode': self.lt.storage_mode_t(1),
 | 
				
			||||||
                       'paused': False,
 | 
					                       'paused': False,
 | 
				
			||||||
                       #'auto_managed': False,
 | 
					                       #'auto_managed': False,
 | 
				
			||||||
                       #'duplicate_is_error': True
 | 
					                       'duplicate_is_error': False
 | 
				
			||||||
                      }
 | 
					                      }
 | 
				
			||||||
        if self.save_resume_data:
 | 
					        if self.save_resume_data:
 | 
				
			||||||
            log('loading resume data')
 | 
					            log('loading resume data')
 | 
				
			||||||
 | 
				
			|||||||
@ -287,7 +287,7 @@ class TorrentPlayer(xbmc.Player):
 | 
				
			|||||||
                return
 | 
					                return
 | 
				
			||||||
            xbmc.sleep(1000)
 | 
					            xbmc.sleep(1000)
 | 
				
			||||||
        self.torrent.resume_data()
 | 
					        self.torrent.resume_data()
 | 
				
			||||||
        #self.torrent.session.remove_torrent(self.torrent.torrentHandle)
 | 
					        self.torrent.session.remove_torrent(self.torrent.torrentHandle)
 | 
				
			||||||
        progressBar.update(0)
 | 
					        progressBar.update(0)
 | 
				
			||||||
        progressBar.close()
 | 
					        progressBar.close()
 | 
				
			||||||
        return True
 | 
					        return True
 | 
				
			||||||
@ -366,6 +366,7 @@ class TorrentPlayer(xbmc.Player):
 | 
				
			|||||||
        subs = self.torrent.getSubsIds(label)
 | 
					        subs = self.torrent.getSubsIds(label)
 | 
				
			||||||
        debug('[setup_subs] subs: '+str(subs))
 | 
					        debug('[setup_subs] subs: '+str(subs))
 | 
				
			||||||
        if len(subs) > 0:
 | 
					        if len(subs) > 0:
 | 
				
			||||||
 | 
					            self.torrent.startSession()
 | 
				
			||||||
            showMessage(self.localize('Information'),
 | 
					            showMessage(self.localize('Information'),
 | 
				
			||||||
                        self.localize('Downloading and copy subtitles. Please wait.'), forced=True)
 | 
					                        self.localize('Downloading and copy subtitles. Please wait.'), forced=True)
 | 
				
			||||||
            for ind, title in subs:
 | 
					            for ind, title in subs:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user