Skip to content

Commit 5ac45d8

Browse files
authored
Merge pull request #40 from mic159/patch-1
Fix HTTPS video download
2 parents e77b267 + ed16b76 commit 5ac45d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reolinkapi/handlers/api_handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _execute_command(self, command: str, data: List[Dict], multi: bool = False)
124124
tgt_filepath = data[0].pop('filepath')
125125
# Apply the data to the params
126126
params.update(data[0])
127-
with requests.get(self.url, params=params, stream=True) as req:
127+
with requests.get(self.url, params=params, stream=True, verify=False, timeout=(1, None)) as req:
128128
if req.status_code == 200:
129129
with open(tgt_filepath, 'wb') as f:
130130
f.write(req.content)

0 commit comments

Comments
 (0)