]> git.bitcoin.ninja Git - youtube-dl/blobdiff - youtube_dl/utils.py
release 2019.01.30.1
[youtube-dl] / youtube_dl / utils.py
index 64b524d2fafa9b8e65a862ce7f2acb0cb59f31db..d0cb65814238234e61ea32cff77eeb4a3ad210d3 100644 (file)
@@ -1868,7 +1868,7 @@ def urljoin(base, path):
         path = path.decode('utf-8')
     if not isinstance(path, compat_str) or not path:
         return None
-    if re.match(r'^(?:https?:)?//', path):
+    if re.match(r'^(?:[a-zA-Z][a-zA-Z0-9+-.]*:)?//', path):
         return path
     if isinstance(base, bytes):
         base = base.decode('utf-8')
@@ -3093,7 +3093,7 @@ class ISO639Utils(object):
         'wo': 'wol',
         'xh': 'xho',
         'yi': 'yid',
-        'ji': 'yid',  # Replaced by he yi 1989 revision
+        'ji': 'yid',  # Replaced by yi in 1989 revision
         'yo': 'yor',
         'za': 'zha',
         'zh': 'zho',