From 489a24f57b3f0b203aa47cd93c0260aa639298d8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 9 Dec 2015 17:21:21 +0100 Subject: Fix ID extraction from URLs Signed-off-by: Florian Pritz --- fb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fb.py b/fb.py index 6d1c2aa..6165365 100755 --- a/fb.py +++ b/fb.py @@ -574,6 +574,7 @@ class FBClient: def extractId(self, arg): arg = arg.replace(self.config['pastebin'], '') + arg = arg.strip('/') match = re.match('^([^/]+)', arg) id = match.group(0) return id -- cgit v1.2.3-24-g4f1b