aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2013-06-06 14:35:08 +0200
committerFilippo Valsorda <filippo.valsorda@gmail.com>2013-06-06 14:35:08 +0200
commit468e2e926b8d1f55d6ce67fee67e33a7fa6d8371 (patch)
tree0a295849b44b3eb871f2c66ca1aa30126cb9f1f4 /youtube_dl/utils.py
parentac3e9394e76c0e8baeff1bc77eb67fa184ceb81c (diff)
implement fallbacks and defaults in _search_regex
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 63d9d0ae5..3a8dcf4d3 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -154,6 +154,9 @@ def compat_ord(c):
if type(c) is int: return c
else: return ord(c)
+# This is not clearly defined otherwise
+compiled_regex_type = type(re.compile(''))
+
std_headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0',
'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',