Fixed a typo to get the state of a torrent'status
This commit is contained in:
parent
f2dd0e0a3a
commit
8110fa2b7d
|
@ -45,7 +45,7 @@ class PeertubeDownloader(Thread):
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
s = h.status()
|
s = h.status()
|
||||||
# Inform addon that all the metadata has been downloaded and that it may start playing the torrent
|
# 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()} )
|
AddonSignals.sendSignal('metadata_downloaded', {'name': h.name()} )
|
||||||
signal_sent = 1
|
signal_sent = 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue