There's an error in line 1024. The transform strings are not the same length. I'd like to see more sed programs on HN instead of the usual Python, Ruby or Go offerings. I wrote a sed version of the the Python script "youtube-dl". This way I don't need Python installed to download YouTube videos. And it's easy to edit if YouTube suddenly changes their "API"; no need to wait for someone else to fix their Python or Lua…
I agree its nice to see a variety of languages. Gives a fresh perspective on how to do things.