diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index c418566f..bd76faa2 100644 --- a/pandora/config.pandora.jsonc +++ b/pandora/config.pandora.jsonc @@ -1274,6 +1274,6 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "formats": ["webm", "mp4"], "previewRatio": 1.3333333333, "resolutions": [240, 480], - "torrent": true + "torrent": false } } diff --git a/pandora/item/managers.py b/pandora/item/managers.py index cd185441..be409e5f 100644 --- a/pandora/item/managers.py +++ b/pandora/item/managers.py @@ -165,7 +165,10 @@ def parseCondition(condition, user, owner=None): else: q = Q(id__in=l.items.all()) if exclude: - q = ~q + if isinstance(q, list): + q = [~x for x in q] + else: + q = ~q else: q = Q(id=0) return q