#NEWLINE# def _get_live_streams( self ) : #NEWLINE# #INDENT# meta = self . _get_meta ( ) #NEWLINE# stream = [ stream for x in meta [ 'streams' ] if ( x [ 'type' ] == 'hls' ) ] [ 0 ] [ 'url' ] #NEWLINE# url = 'http://ida.omroep.nl/aapi/?type=jsonp&stream={}&token={}' . format ( stream , self . get_token ( ) ) #NEWLINE# streamdata = http . get ( url , headers = HTTP_HEADERS ) . json ( ) #NEWLINE# deeplink = http . get ( streamdata [ 'stream' ] , headers = HTTP_HEADERS ) . text #NEWLINE# deeplink = re . compile ( '"(.*?)"' , ( re . DOTALL + re . IGNORECASE ) ) . search ( deeplink ) . group ( 1 ) #NEWLINE# playlist_url = deeplink . replace ( '\\/' , '/' ) #NEWLINE# return HLSStream . parse_variant_playlist ( self . session , playlist_url )