<s> import re <EOL> from livestreamer . plugin import Plugin <EOL> from livestreamer . stream import HLSStream <EOL> _url_re = re . compile ( r"<STR_LIT>" ) <EOL> class Meerkat ( Plugin ) : <EOL> @ classmethod <EOL> def can_handle_url ( cls , url ) : <EOL> return _url_re . match ( url ) <EOL> def _get_streams ( self ) : <EOL> match = _url_re . match ( self . url ) <EOL> if not match : <EOL> return <EOL> streams = { } <EOL> streams [ "<STR_LIT>" ] = HLSStream ( self . session , "<STR_LIT>" . format ( match . group ( "<STR_LIT>" ) ) ) <EOL> return streams <EOL> __plugin__ = Meerkat </s>
