fnord 10 лет назад
Родитель
Сommit
593b77064c
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      youtube_dl/compat.py

+ 3 - 0
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:])