Add support for the "aesgcm://" scheme used by Conversations master
authorAntonio Ospite <ao2@ao2.it>
Wed, 29 Nov 2017 14:59:54 +0000 (15:59 +0100)
committerAntonio Ospite <ao2@ao2.it>
Wed, 29 Nov 2017 14:59:54 +0000 (15:59 +0100)
conversations_http_downloader.py

index 70cdbd9..dde1a4d 100755 (executable)
@@ -62,6 +62,9 @@ def main():
 
     url = sys.argv[1]
 
+    if url.startswith("aesgcm://"):
+        url = "https://" + url[len("aesgcm://"):]
+
     parsed_url = urllib.parse.urlparse(url)
     anchor = parsed_url.fragment