summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/pinterest.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-01-28 16:01:28 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2021-01-28 16:01:28 -0500
commit2e29d2158d56879e5578dfabf9e8c0fa2e855ccf (patch)
treef61fc7f27fd010c0cd2398edede30b403d0506e5 /gallery_dl/extractor/pinterest.py
parent6335711bbe769b6b9301a88d88790d7a2f8aa82e (diff)
New upstream version 1.16.4.upstream/1.16.4
Diffstat (limited to 'gallery_dl/extractor/pinterest.py')
-rw-r--r--gallery_dl/extractor/pinterest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gallery_dl/extractor/pinterest.py b/gallery_dl/extractor/pinterest.py
index 334412d..e5a0486 100644
--- a/gallery_dl/extractor/pinterest.py
+++ b/gallery_dl/extractor/pinterest.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-# Copyright 2016-2020 Mike Fährmann
+# Copyright 2016-2021 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -305,7 +305,7 @@ class PinterestAPI():
def __init__(self, extractor):
self.extractor = extractor
- csrf_token = util.generate_csrf_token()
+ csrf_token = util.generate_token()
self.headers = self.HEADERS.copy()
self.headers["X-CSRFToken"] = csrf_token
self.cookies = {"csrftoken": csrf_token}