Ensure torrent_ids is a list
If torrent_ids is created from filter_dict it is a tuple. This results in an error when attempting to remove a torrent_id from torrent_ids later on in 'leftover filter args' and 'filter_state_active()'.
This commit is contained in:
parent
aa969fd830
commit
a64fe05890
|
@ -130,8 +130,8 @@ class FilterManager(component.Component):
|
|||
filter_dict[key] = [value]
|
||||
|
||||
|
||||
if "id"in filter_dict: #optimized filter for id:
|
||||
torrent_ids = filter_dict["id"]
|
||||
if "id" in filter_dict: #optimized filter for id:
|
||||
torrent_ids = list(filter_dict["id"])
|
||||
del filter_dict["id"]
|
||||
else:
|
||||
torrent_ids = self.torrents.get_torrent_list()
|
||||
|
|
Loading…
Reference in New Issue