1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-10-03 22:07:11 +02:00

Strip trailing '/' chars from target specifiers

This makes Instaloader more shell-autocompletion-friendly.
This commit is contained in:
Alexander Graf 2018-03-31 15:18:05 +02:00
parent 235522dfd7
commit 8623829696

View File

@ -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:])