aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2024-03-11 09:47:35 +0800
committerAstound <kirito@disroot.org>2024-03-11 09:47:35 +0800
commitb91d53dc6f2657ab0c190ccd1606d50df00dff84 (patch)
tree65b9e2467ffd4718470e195027e74fe648f3de96 /youtube
parentcda4fd1f2670d48b44a4f0c1e67b2ca2a7437923 (diff)
downloadyt-local-b91d53dc6f2657ab0c190ccd1606d50df00dff84.tar.lz
yt-local-b91d53dc6f2657ab0c190ccd1606d50df00dff84.tar.xz
yt-local-b91d53dc6f2657ab0c190ccd1606d50df00dff84.zip
Use response.headers instead of response.getheaders()
response.getheaders() will be deprecated by urllib3.
Diffstat (limited to 'youtube')
-rw-r--r--youtube/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/util.py b/youtube/util.py
index e278a23..07d80b1 100644
--- a/youtube/util.py
+++ b/youtube/util.py
@@ -336,7 +336,7 @@ def fetch_url(url, headers=(), timeout=15, report_text=None, data=None,
)
)
):
- print(response.status, response.reason, response.getheaders())
+ print(response.status, response.reason, response.headers)
ip = re.search(
br'IP address: ((?:[\da-f]*:)+[\da-f]+|(?:\d+\.)+\d+)',
content)