From 919bba0bdb2f9e18d271d580de6800d049fcc321 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Sat, 28 Nov 2020 08:31:36 -0500 Subject: [PATCH 1/3] Cleanup repo --- .gitignore | 4 ++-- .idea/.gitignore | 8 -------- .idea/inspectionProfiles/profiles_settings.xml | 6 ------ .idea/misc.xml | 4 ---- .idea/modules.xml | 8 -------- .idea/pythonProject1.iml | 8 -------- .idea/vcs.xml | 6 ------ 7 files changed, 2 insertions(+), 42 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/pythonProject1.iml delete mode 100644 .idea/vcs.xml diff --git a/.gitignore b/.gitignore index 13bbe5b..4d0f93e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -.idea/ - +.idea +Downloads diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 73f69e0..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml -# Editor-based HTTP Client requests -/httpRequests/ diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index fd53194..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index fdd8fdf..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/pythonProject1.iml b/.idea/pythonProject1.iml deleted file mode 100644 index d0876a7..0000000 --- a/.idea/pythonProject1.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file -- 2.43.5 From 3237ab76de5088fb58980cb2d0de5ce58be9f05b Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Sat, 28 Nov 2020 08:36:19 -0500 Subject: [PATCH 2/3] 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) -- 2.43.5 From bbe07dd525215a363f2647762f36d041e4d3a63f Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Sat, 28 Nov 2020 08:48:00 -0500 Subject: [PATCH 3/3] Remove quotes from Download --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 5c977a6..fa2c389 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] open(saveLocation, 'wb').write(r.content) except requests.exceptions.RequestException as e: print(e) -- 2.43.5