projects
/
conversations_http_downloader.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4321b58
)
Add support for the "aesgcm://" scheme used by Conversations
master
author
Antonio Ospite <ao2@ao2.it>
Wed, 29 Nov 2017 14:59:54 +0000
(15:59 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Wed, 29 Nov 2017 14:59:54 +0000
(15:59 +0100)
conversations_http_downloader.py
patch
|
blob
|
history
diff --git
a/conversations_http_downloader.py
b/conversations_http_downloader.py
index
70cdbd9
..
dde1a4d
100755
(executable)
--- a/
conversations_http_downloader.py
+++ b/
conversations_http_downloader.py
@@
-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