Fixed a bug in PeertubeDownloader.run() where I was refering to variable 'torrent'

instead of 'self.torrent'
This commit is contained in:
Famille Bollu 2018-07-27 17:37:48 +02:00
parent 4c47e8e382
commit 0d63448e8f
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class PeertubeDownloader(Thread):
# Add torrent
xbmc.log('PeertubeDownloader: Adding torrent ' + self.torrent, xbmc.LOGDEBUG)
h = ses.add_torrent({'url': torrent, 'save_path': self.temp_dir})
h = ses.add_torrent({'url': self.torrent, 'save_path': self.temp_dir})
# Set sequential mode to allow watching while downloading
h.set_sequential_download(True)