fix a few remaining usages of StreamWorker.stream instead of .quality

pull/67/head
Mike Lang 5 years ago committed by Christopher Usher
parent 361e577474
commit 04ef0d3823

@ -283,7 +283,7 @@ class StreamWorker(object):
self.session = requests.Session() self.session = requests.Session()
def __repr__(self): def __repr__(self):
return "<{} at 0x{:x} for stream {!r}>".format(type(self).__name__, id(self), self.stream) return "<{} at 0x{:x} for stream {!r}>".format(type(self).__name__, id(self), self.quality)
__str__ = __repr__ __str__ = __repr__
def age(self): def age(self):
@ -307,7 +307,7 @@ class StreamWorker(object):
for getter in self.getters.values(): for getter in self.getters.values():
getter.done.wait() getter.done.wait()
self.done.set() self.done.set()
self.manager.stream_workers[self.stream].remove(self) self.manager.stream_workers[self.quality].remove(self)
def trigger_new_worker(self): def trigger_new_worker(self):
self.manager.trigger_new_worker(self) self.manager.trigger_new_worker(self)

Loading…
Cancel
Save