Don't forget trailing '%'
authorfnord <fnord@fnord.mobi>
Fri, 17 Jul 2015 14:45:49 +0000 (09:45 -0500)
committerfnord <fnord@fnord.mobi>
Fri, 17 Jul 2015 14:45:49 +0000 (09:45 -0500)
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:])