diff --git a/library/flood.py b/library/flood.py index 72992b7d1..1df353ecd 100644 --- a/library/flood.py +++ b/library/flood.py @@ -339,6 +339,9 @@ class manager: if self.get_supp_torrent_state(unique_ID) is not None: ret.update(self.get_supp_torrent_state(unique_ID)) + # Get queue position + ret['queue_pos'] = self.queue.index(unique_ID) + return ret def get_torrent_peer_info(self, unique_ID):