Simplify url_basename
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index d5069dcca98..4c7ad89c0b3 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1092,7 +1092,5 @@ def remove_start(s, start):
 
 
 def url_basename(url):
-    m = re.match(r'(?:https?:|)//[^/]+/(?:[^?#]+/)?([^/?#]+)/?(?:[?#]|$)', url)
-    if not m:
-        return u''
-    return m.group(1)
+    path = compat_urlparse.urlparse(url).path
+    return path.strip(u'/').split(u'/')[-1]

Use urlparse from the standard library.

I think it does the same, the tests pass. I prefer that to a terrorific regex.
