diff --git a/dumpgenerator.py b/dumpgenerator.py
index ed1ea61..310f374 100644
--- a/dumpgenerator.py
+++ b/dumpgenerator.py
@@ -593,7 +593,8 @@ def getImageFilenamesURLAPI(config={}):
sys.exit()
xml = f.read()
f.close()
- m = re.findall(r'', xml)
+ # Match the query-continue, old and new format
+ m = re.findall(r']+)" />', xml)
if m:
aifrom = undoHTMLEntities(text=m[0]) #" = ", etc
else: