Also process ftp URLs in icat

This commit is contained in:
Kovid Goyal
2019-01-27 21:30:53 +05:30
parent a09fb7b20d
commit 5172597d96

View File

@@ -318,7 +318,7 @@ def main(args=sys.argv):
if len(items) > 1 or (isinstance(items[0], str) and os.path.isdir(items[0])):
raise SystemExit(f'The --place option can only be used with a single image, not {items}')
sys.stdout.buffer.write(b'\0337') # save cursor
url_pat = re.compile(r'https?://', flags=re.I)
url_pat = re.compile(r'(?:https?|ftp)://', flags=re.I)
for item in items:
is_tempfile = False
try: