aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2023-05-23 16:19:55 +0100
committerdirkf <fieldhouse@gmx.net>2023-05-23 16:50:25 +0100
commitee731f3d00064f446faa9ffb4c21ce4ca388bf5d (patch)
tree6eacf042dd5d722b829c42302642396c592a5eea /youtube_dl/extractor
parent1f7c6f8b2ba5bedc9b4da279659688fbbf06a059 (diff)
downloadyoutube-dl-ee731f3d00064f446faa9ffb4c21ce4ca388bf5d.tar.xz
[ITV] Fix UA capitalisation in 384f632
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/itv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/itv.py b/youtube_dl/extractor/itv.py
index 7026139ea..c64af3be6 100644
--- a/youtube_dl/extractor/itv.py
+++ b/youtube_dl/extractor/itv.py
@@ -59,7 +59,7 @@ class ITVBaseIE(InfoExtractor):
@staticmethod
def _vanilla_ua_header():
- return {'User-agent': 'Mozilla/5.0'}
+ return {'User-Agent': 'Mozilla/5.0'}
def _download_webpage_handle(self, url, video_id, *args, **kwargs):
# specialised to (a) use vanilla UA (b) detect geo-block
@@ -69,7 +69,7 @@ class ITVBaseIE(InfoExtractor):
'user_agent' not in params
and not any(re.match(r'(?i)user-agent\s*:', h)
for h in (params.get('headers') or []))
- and 'User-agent' not in (kwargs.get('headers') or {})):
+ and 'User-Agent' not in (kwargs.get('headers') or {})):
kwargs.setdefault('headers', {})
kwargs['headers'] = self._vanilla_ua_header()