~mdw
/
epls
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3807f7c
)
mkm3u: Don't escape underscores in URLs.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 31 Mar 2022 15:55:19 +0000
(16:55 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
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