#NEWLINE# def _get_streams( self ) : #NEWLINE# #INDENT# match = _url_re . match ( self . url ) #NEWLINE# channel_name = match . group ( 'channel' ) #NEWLINE# try : #NEWLINE# #INDENT# stream = self . _get_rtmp_stream ( channel_name ) #NEWLINE# ( yield ( 'live' , stream ) ) #NEWLINE# #UNINDENT# except PluginError as err : #NEWLINE# #INDENT# self . logger . error ( 'Unable to extract RTMP stream: {0}' , err ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# stream = self . _get_hls_stream ( channel_name ) #NEWLINE# if self : #NEWLINE# #INDENT# ( yield ( 'live' , stream ) ) #NEWLINE# #UNINDENT# #UNINDENT# except PluginError as err : #NEWLINE# #INDENT# self . logger . error ( 'Unable to extract HLS stream: {0}' , err )