From 8623829696d0d64d328d2cabb7a07ee1c0a8a99f Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Sat, 31 Mar 2018 15:18:05 +0200 Subject: [PATCH] Strip trailing '/' chars from target specifiers This makes Instaloader more shell-autocompletion-friendly. --- instaloader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instaloader.py b/instaloader.py index f50365d..09ead30 100755 --- a/instaloader.py +++ b/instaloader.py @@ -1647,6 +1647,8 @@ class Instaloader: try: # Generate set of profiles, already downloading non-profile targets for target in targetlist: + # strip '/' characters to be more shell-autocompletion-friendly + target = target.rstrip('/') with self._error_catcher(target): if target[0] == '@': self._log("Retrieving followees of %s..." % target[1:])