@classmethod<EOL><INDENT>def priority(cls, url):<DEDENT>
m = cls._url_re.match(url)<EOL>if m:<EOL><INDENT>prefix, url = cls._url_re.match(url).groups()<EOL>url_path = urlparse(url).path<EOL>if prefix is None and url_path.endswith("<STR_LIT>"):<EOL><INDENT>return LOW_PRIORITY<EOL><DEDENT>elif prefix is not None:<EOL><INDENT>return NORMAL_PRIORITY<EOL><DEDENT><DEDENT>return NO_PRIORITY<EOL>
Returns LOW priority if the URL is not prefixed with hls:// but ends with
.m3u8 and return NORMAL priority if the URL is prefixed.
:param url: the URL to find the plugin priority for
:return: plugin priority for the given URL