From e21e16d753f6a7ba787fdb3a3cd1ef504de7f69a Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 4 May 2019 21:15:20 +0300 Subject: irc: Add job info to warcinfo record --- crocoite/controller.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'crocoite/controller.py') diff --git a/crocoite/controller.py b/crocoite/controller.py index 9105997..432d434 100644 --- a/crocoite/controller.py +++ b/crocoite/controller.py @@ -320,7 +320,11 @@ class RecursiveController: logger = self.logger.bind (url=url) def formatCommand (e): - return e.format (url=url, dest=dest.name) + # provide means to disable variable expansion + if e.startswith ('!'): + return e[1:] + else: + return e.format (url=url, dest=dest.name) def formatPrefix (p): return p.format (host=url.host, date=datetime.utcnow ().isoformat ()) -- cgit v1.2.3