]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/compat.py
Don't forget trailing '%'
[youtube-dl.git] / youtube_dl / compat.py
index 8b4d0287c4d15fd85208c11e629c11058c7d8a87..9e506352fe6238e124d17c4bfeb235b15396cb28 100644 (file)
@@ -98,6 +98,9 @@ except ImportError:
         append = res.append
 
         for item in bits[1:]:
+            if item == '':
+                append(b'%')
+                continue
             try:
                 append(item[:2].decode('hex'))
                 append(item[2:])