mkm3u: Don't escape underscores in URLs.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 31 Mar 2022 15:55:19 +0000 (16:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 31 Mar 2022 15:55:19 +0000 (16:55 +0100)
There aren't any that we care about, but really.

mkm3u

diff --git a/mkm3u b/mkm3u
index e4a32c7..9c50c3e 100755 (executable)
--- a/mkm3u
+++ b/mkm3u
@@ -81,7 +81,7 @@ URL_SAFE_P = 256*[False]
 for ch in \
     b"ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
     b"abcdefghijklmnopqrstuvwxyz" \
-    b"0123456789" b"!$%-.,/":
+    b"0123456789" b"!$%_-.,/":
   URL_SAFE_P[ch] = True
 def urlencode(s):
   return "".join((URL_SAFE_P[ch] and chr(ch) or "%%%02x" % ch