From 0bf36743b6fd81977d22f1fd4e669b4fc35f0fe6 Mon Sep 17 00:00:00 2001 From: David Pooley Date: Sun, 2 Jul 2023 02:24:16 +0100 Subject: [PATCH] Update regex to allow numbers in config variables --- plexpy/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/config.py b/plexpy/config.py index 7c1651a4..6f2926d9 100644 --- a/plexpy/config.py +++ b/plexpy/config.py @@ -537,7 +537,7 @@ class Config(object): Returns something from the ini unless it is a real property of the configuration object or is not all caps. """ - if not re.match(r'[A-Z_]+$', name): + if not re.match(r'[A-Z0-9_]+$', name): return super(Config, self).__getattr__(name) else: return self.check_setting(name)