From 13f72c15dbcbd7c3deb0c7cea97155b73a8ccd7e Mon Sep 17 00:00:00 2001 From: Benson Chu Date: Sun, 7 Jun 2026 08:50:24 -0500 Subject: [PATCH] Empty query matches all --- config.yaml | 2 +- plugins/labels.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.yaml b/config.yaml index 4756a15..9c0e850 100644 --- a/config.yaml +++ b/config.yaml @@ -76,7 +76,7 @@ smartplaylist: forward_slash: no playlists: - name: "favorites.m3u" - query: ['label:favorites'] + query: ['label:'] - name: "everyday.m3u" query: ['sorted_playlist:everyday'] - name: "exercise.m3u" diff --git a/plugins/labels.py b/plugins/labels.py index 155728f..b23cfc4 100644 --- a/plugins/labels.py +++ b/plugins/labels.py @@ -355,6 +355,9 @@ class HasLabelQuery(FieldQuery): if not labels: return False + if not pattern: + return True + match = re.match(r'^([^.]+)(?:\.(gt|lt|eq)\.(\d+))?$', pattern) if not match: return False