summaryrefslogtreecommitdiffhomepage
path: root/custom_libs/libfilebot
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2024-04-24 06:49:38 -0400
committermorpheus65535 <[email protected]>2024-04-24 06:49:38 -0400
commitfd190aad143a01a83e13dcf03b82bb34ddb8d2fc (patch)
tree60c24c57529d478918d981db75dc0503662ed8ab /custom_libs/libfilebot
parent369b2c73439d15c5e9c43526b239e36329c82329 (diff)
downloadbazarr-fd190aad143a01a83e13dcf03b82bb34ddb8d2fc.tar.gz
bazarr-fd190aad143a01a83e13dcf03b82bb34ddb8d2fc.zip
Fixed SyntaxWarning with Python 3.12. #2462
Diffstat (limited to 'custom_libs/libfilebot')
-rw-r--r--custom_libs/libfilebot/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom_libs/libfilebot/main.py b/custom_libs/libfilebot/main.py
index 3e1333e0b..e93822bb3 100644
--- a/custom_libs/libfilebot/main.py
+++ b/custom_libs/libfilebot/main.py
@@ -50,7 +50,7 @@ def default_xattr(fn):
XATTR_MAP = {
"default": (
default_xattr,
- lambda result: re.search('(?um)(net\.filebot\.filename(?=="|: )[=:" ]+|Attribute.+:\s)([^"\n\r\0]+)',
+ lambda result: re.search(r'(?um)(net\.filebot\.filename(?=="|: )[=:" ]+|Attribute.+:\s)([^"\n\r\0]+)',
result).group(2)
),
# "darwin": (
@@ -60,7 +60,7 @@ XATTR_MAP = {
# ),
"darwin": (
lambda fn: ["filebot", "-script", "fn:xattr", fn],
- lambda result: re.search('(?um)(net\.filebot\.filename(?=="|: )[=:" ]+|Attribute.+:\s)([^"\n\r\0]+)',
+ lambda result: re.search(r'(?um)(net\.filebot\.filename(?=="|: )[=:" ]+|Attribute.+:\s)([^"\n\r\0]+)',
result).group(2)
),
"win32": (