Strip trailing '/' chars from target specifiers
This makes Instaloader more shell-autocompletion-friendly.
This commit is contained in:
parent
235522dfd7
commit
8623829696
@ -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:])
|
||||
|
Loading…
Reference in New Issue
Block a user