diff options
| author | 2023-12-11 01:12:30 -0500 | |
|---|---|---|
| committer | 2023-12-11 01:12:30 -0500 | |
| commit | 30dee4697019389ef29458b2e3931adc976389b2 (patch) | |
| tree | 9c627d0f873d3d2efe5a1c3881a5feaec3acf5d4 /gallery_dl/extractor/reddit.py | |
| parent | 2a817af4fe41289fa705bdc5ee61372333f43996 (diff) | |
New upstream version 1.26.4.upstream/1.26.4
Diffstat (limited to 'gallery_dl/extractor/reddit.py')
| -rw-r--r-- | gallery_dl/extractor/reddit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py index c0bf5b3..feb6d1f 100644 --- a/gallery_dl/extractor/reddit.py +++ b/gallery_dl/extractor/reddit.py @@ -423,9 +423,10 @@ class RedditAPI(): "grants/installed_client"), "device_id": "DO_NOT_TRACK_THIS_DEVICE"} + auth = util.HTTPBasicAuth(self.client_id, "") response = self.extractor.request( url, method="POST", headers=self.headers, - data=data, auth=(self.client_id, ""), fatal=False) + data=data, auth=auth, fatal=False) data = response.json() if response.status_code != 200: |
