diff options
author | Filippo Valsorda <filippo.valsorda@gmail.com> | 2013-05-20 11:57:10 +0200 |
---|---|---|
committer | Filippo Valsorda <filippo.valsorda@gmail.com> | 2013-05-20 11:57:10 +0200 |
commit | b31756c18e708605f1ba0257f8a28234c229bf70 (patch) | |
tree | 709fa3bc6df0dc82969f397cbfcc137e9ad0204f /youtube_dl/utils.py | |
parent | f008688520ad0fadcf80601ce193d352cc0d4bd3 (diff) |
Python 2 compat fixes for MyVideo.de rtmpdump downloads
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 616948e10..63d9d0ae5 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -150,6 +150,10 @@ try: except NameError: compat_chr = chr +def compat_ord(c): + if type(c) is int: return c + else: return ord(c) + 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', |