Skip to content

Commit 5d81467

Browse files
authored
Merge pull request #1956 from krzotr/master
OptionalFileList - Added support for filter not_downloaded
2 parents 7a59a19 + 80f3f9d commit 5d81467

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

plugins/OptionalManager/UiWebsocketPlugin.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,12 @@ def actionOptionalFileList(self, to, address=None, orderby="time_downloaded DESC
132132
wheres_raw = []
133133
if "bigfile" in filter:
134134
wheres["size >"] = 1024 * 1024 * 10
135-
if "downloaded" in filter:
135+
136+
if "not_downloaded" in filter:
137+
wheres["is_downloaded"] = 0
138+
elif "downloaded" in filter:
136139
wheres_raw.append("(is_downloaded = 1 OR is_pinned = 1)")
140+
137141
if "pinned" in filter:
138142
wheres["is_pinned"] = 1
139143

0 commit comments

Comments
 (0)