Merge pull request #1956 from krzotr/master
OptionalFileList - Added support for filter not_downloaded
This commit is contained in:
commit
5d81467083
1 changed files with 5 additions and 1 deletions
|
@ -132,8 +132,12 @@ class UiWebsocketPlugin(object):
|
||||||
wheres_raw = []
|
wheres_raw = []
|
||||||
if "bigfile" in filter:
|
if "bigfile" in filter:
|
||||||
wheres["size >"] = 1024 * 1024 * 10
|
wheres["size >"] = 1024 * 1024 * 10
|
||||||
if "downloaded" in filter:
|
|
||||||
|
if "not_downloaded" in filter:
|
||||||
|
wheres["is_downloaded"] = 0
|
||||||
|
elif "downloaded" in filter:
|
||||||
wheres_raw.append("(is_downloaded = 1 OR is_pinned = 1)")
|
wheres_raw.append("(is_downloaded = 1 OR is_pinned = 1)")
|
||||||
|
|
||||||
if "pinned" in filter:
|
if "pinned" in filter:
|
||||||
wheres["is_pinned"] = 1
|
wheres["is_pinned"] = 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue