mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fix for _getLoadingShowList errors
This commit is contained in:
parent
cd91e2430f
commit
1fc8e89aee
1 changed files with 6 additions and 2 deletions
|
@ -43,7 +43,7 @@ class ShowQueue(generic_queue.GenericQueue):
|
|||
self.queue = show_queue
|
||||
|
||||
def _isInQueue(self, show, actions):
|
||||
return show in [x.show for x in self.queue.get() if x.action_id in actions] if not self.queue.empty() else []
|
||||
return show in [x.show for x in self.queue.queue if x.action_id in actions] if not self.queue.empty() else []
|
||||
|
||||
def _isBeingSomethinged(self, show, actions):
|
||||
return self.currentItem != None and show == self.currentItem.show and \
|
||||
|
@ -77,7 +77,11 @@ class ShowQueue(generic_queue.GenericQueue):
|
|||
return self._isBeingSomethinged(show, (ShowQueueActions.SUBTITLE,))
|
||||
|
||||
def _getLoadingShowList(self):
|
||||
return [x for x in self.queue.get() if x != None and x.isLoading] + [self.currentItem] if not self.queue.empty() else []
|
||||
queue = []
|
||||
while not self.queue.empty():
|
||||
queueItem = self.queue.get()
|
||||
queue.append(queueItem)
|
||||
return [x for x in queue if x != None and x.isLoading] if not self.queue.empty() else []
|
||||
|
||||
|
||||
loadingShowList = property(_getLoadingShowList)
|
||||
|
|
Loading…
Reference in a new issue