From 616d9bfbbbd0ab7ce865d0e9c9b2f61f8e22be30 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 14 Dec 2021 15:03:45 +1100 Subject: [PATCH] Don't exclude slashes when parsing URLs for identifier rules Not sure why I had excluded the slash as a valid character in the identifier. There are a few sites that do this. --- src/calibre/gui2/metadata/basic_widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/metadata/basic_widgets.py b/src/calibre/gui2/metadata/basic_widgets.py index b393771818..ec394f638e 100644 --- a/src/calibre/gui2/metadata/basic_widgets.py +++ b/src/calibre/gui2/metadata/basic_widgets.py @@ -1710,7 +1710,7 @@ class IdentifiersEdit(QLineEdit, ToMetadataMixin): rules = msprefs['id_link_rules'] if rules: formatter = EvalFormatter() - vals = {'id' : '(?P[^/]+)'} + vals = {'id' : '(?P.+)'} for key in rules.keys(): rule = rules[key] for name, template in rule: