aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/common.py')
-rw-r--r--youtube/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube/common.py b/youtube/common.py
index 384d560..f867ea9 100644
--- a/youtube/common.py
+++ b/youtube/common.py
@@ -169,7 +169,8 @@ def fetch_url(url, headers=(), timeout=15, report_text=None):
content = gzip.decompress(content)
return content
-mobile_ua = (('User-Agent', 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1'),)
+mobile_user_agent = 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1'
+mobile_ua = (('User-Agent', mobile_user_agent),)
def dict_add(*dicts):
for dictionary in dicts[1:]: