From: Mark Wooding Date: Thu, 31 Mar 2022 15:55:19 +0000 (+0100) Subject: mkm3u: Don't escape underscores in URLs. X-Git-Url: https://git.distorted.org.uk/~mdw/epls/commitdiff_plain/685ddde0702e316d6ed6793932409bf922ba4733?hp=3807f7c1afd1a9bbc2b29d5cc4b17b188bc4fb98 mkm3u: Don't escape underscores in URLs. There aren't any that we care about, but really. --- diff --git a/mkm3u b/mkm3u index e4a32c7..9c50c3e 100755 --- 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