diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index bd76faa2..c418566f 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": false + "torrent": true } } diff --git a/pandora/item/managers.py b/pandora/item/managers.py index be409e5f..cd185441 100644 --- a/pandora/item/managers.py +++ b/pandora/item/managers.py @@ -165,10 +165,7 @@ def parseCondition(condition, user, owner=None): else: q = Q(id__in=l.items.all()) if exclude: - if isinstance(q, list): - q = [~x for x in q] - else: - q = ~q + q = ~q else: q = Q(id=0) return q