projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2d2495
)
[utils] Add common user agents map
author
Sergey M․
<dstftw@gmail.com>
Sun, 11 Dec 2016 17:49:07 +0000
(
00:49
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 11 Dec 2016 17:49:07 +0000
(
00:49
+0700)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 9595bcf9f120ea4d24133e3f7399e637d14ac035..3d4951ad94948ac753b21812626f94be17d9e942 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-86,6
+86,11
@@
std_headers = {
}
+USER_AGENTS = {
+ 'Safari': 'Mozilla/5.0 (X11; Linux x86_64; rv:10.0) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27',
+}
+
+
NO_DEFAULT = object()
ENGLISH_MONTH_NAMES = [