From 1663f139503666b496050a8d235f8ab80e3742e2 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 8 Mar 2014 15:44:51 -0600 Subject: [PATCH] Fix for seriesUrl check. --- calibre-plugin/ffdl_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibre-plugin/ffdl_plugin.py b/calibre-plugin/ffdl_plugin.py index f0ed021..17f3c79 100644 --- a/calibre-plugin/ffdl_plugin.py +++ b/calibre-plugin/ffdl_plugin.py @@ -856,7 +856,7 @@ class FanFictionDownLoaderPlugin(InterfaceAction): series = story.getMetadata('series') if not merge and series and prefs['checkforseriesurlid']: # try to find *series anthology* by *seriesUrl* identifier url or uri first. - searchstr = 'identifiers:"~ur(i|l):~^%s$"'%re.sub(r'https?\:','https?(\:|\|)',re.escape(story.getMetadata('seriesUrl'))) + searchstr = 'identifiers:"~ur(i|l):~^%s$"'%re.sub(r'https?\\:','https?(\:|\|)',re.escape(story.getMetadata('seriesUrl'))) identicalbooks = db.search_getting_ids(searchstr, None) # print("searchstr:%s"%searchstr) # print("identicalbooks:%s"%identicalbooks)