From 3237ab76de5088fb58980cb2d0de5ce58be9f05b Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Sat, 28 Nov 2020 08:36:19 -0500 Subject: [PATCH] Remove quotes from Download --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 5c977a6..535a2f4 100644 --- a/main.py +++ b/main.py @@ -51,7 +51,7 @@ def downloadGame(gameID, mediaID): r = requests.get("https://download4.vimm.net/download/?mediaId=" + str(mediaID), headers=headers) pprint(r) h = r.headers['content-disposition'] - saveLocation = '/home/anthonyo/Downloads/' + re.findall("filename=(.+)", h)[0] + saveLocation = './Downloads/' + re.findall("filename=(.+)", h)[0].replace("\"", "") open(saveLocation, 'wb').write(r.content) except requests.exceptions.RequestException as e: print(e)