diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-09-02 15:13:57 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-09-02 15:13:57 -0700 |
commit | 9d8cbd2b77db8449e71aae5815a31f0436da769e (patch) | |
tree | 9b579b598c572a8efe7684950638ced98a634163 /youtube/common.py | |
parent | f6e1880183f8b06a79b305744db954ffb630e1bc (diff) | |
download | yt-local-9d8cbd2b77db8449e71aae5815a31f0436da769e.tar.lz yt-local-9d8cbd2b77db8449e71aae5815a31f0436da769e.tar.xz yt-local-9d8cbd2b77db8449e71aae5815a31f0436da769e.zip |
Fix channels sometimes giving 500
Diffstat (limited to 'youtube/common.py')
-rw-r--r-- | youtube/common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube/common.py b/youtube/common.py index 23b05fb..912cceb 100644 --- a/youtube/common.py +++ b/youtube/common.py @@ -171,6 +171,8 @@ def fetch_url(url, headers=(), timeout=15, report_text=None): 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),) +desktop_user_agent = 'Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0' +desktop_ua = (('User-Agent', desktop_user_agent),) def dict_add(*dicts): for dictionary in dicts[1:]: |