aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfnord <fnord@fnord.mobi>2015-07-17 09:45:49 -0500
committerfnord <fnord@fnord.mobi>2015-07-17 09:45:49 -0500
commit593b77064c51c411071e310578b542017b9b2ec8 (patch)
treed9be367a5a03707862e197e596905c86b0ced747
parent9fefc88656eceac13604fd86dfb25dc736ed239a (diff)
Don't forget trailing '%'
-rw-r--r--youtube_dl/compat.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
index 8b4d0287c..9e506352f 100644
--- a/youtube_dl/compat.py
+++ b/youtube_dl/compat.py
@@ -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:])