Some enhancements
Some enhancements

Switch to using regex to extract required info
Use json endpoint to extract media info instead (saves 1 http request, plus more robust imo)
Allow control-c to abort script gracefully
gromgit/toggle.sg-download,0x776b7364/toggle.sg-download