rg3/youtube-dl — pull request #2953 by codesparkle (2014-05-19 12:22:13+00:00)
Title: [ndr] fix regexes containing illegal characters

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.