Fixed a typo to get the state of a torrent'status

This commit is contained in:
Famille Bollu 2018-07-26 22:34:26 +02:00
parent f2dd0e0a3a
commit 8110fa2b7d
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class PeertubeDownloader(Thread):
time.sleep(1)
s = h.status()
# Inform addon that all the metadata has been downloaded and that it may start playing the torrent
if s.status >=3 and signal_sent == 0:
if s.state >=3 and signal_sent == 0:
AddonSignals.sendSignal('metadata_downloaded', {'name': h.name()} )
signal_sent = 1