The opening curly brace, '{', is a regex reserved control character, so it needs to be escaped (see http://stackoverflow.com/a/400316/1106367)
Minor improvements:
no need to sort the whole list if all we need is the maximum element, also instead of reinventing the wheel we can use utils to get indices from qualities.
fixed (what I assume was a typo) that caused test_format_note to always fail.
This test was introduced in c57f7757101690681af2eb8c40c8bf81bbe6e64f.
[StreamCZ] correct video id + add test
Merge pull request #2979 from pulpe/streamcz_fix

[StreamCZ] correct video id + add test
[streamcz] Use compat_str
[streamcz] Workaround CertificateError
Merge pull request #2960 from codesparkle/fix-test-format-note-regex

[test] fixed typo in test_format_note (test_YoutubeDL)
Merge pull request #2953 from codesparkle/ndr-regexes-escape-correctly

[ndr] fix regexes containing illegal characters
[nrktv] Add support for tv.nrk.no (Closes #2980)