Merge pull request #9110 from remitamine/parse_duration
[ytdl] / youtube_dl / utils.py
index c91aa068217539558e1f32599fa0d5e5b3d6bf60..f333e471275a69cbd158828c90f0ed1b5522582f 100644 (file)
@@ -1794,6 +1794,8 @@ def urlencode_postdata(*args, **kargs):
 
 
 def update_url_query(url, query):
+    if not query:
+        return url
     parsed_url = compat_urlparse.urlparse(url)
     qs = compat_parse_qs(parsed_url.query)
     qs.update(query)