From 799c0763845dfb82d53ecae0080b276f447144de Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Wed, 28 Nov 2012 04:51:27 +0100 Subject: collegehumor: able to download a single f4f file (not yet playable) --- youtube_dl/utils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'youtube_dl/utils.py') diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 836138277..4600dc967 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -26,6 +26,11 @@ try: except ImportError: # Python 2 import urllib as compat_urllib_parse +try: + from urllib.parse import urlparse as compat_urllib_parse_urlparse +except ImportError: # Python 2 + from urlparse import urlparse as compat_urllib_parse_urlparse + try: import http.cookiejar as compat_cookiejar except ImportError: # Python 2 -- cgit v1.2.3