#NEWLINE# def _update_redirect( self , stderr ) : #NEWLINE# #INDENT# ( tcurl , redirect ) = ( None , None ) #NEWLINE# stderr = str ( stderr , 'utf8' ) #NEWLINE# m = re . search ( 'DEBUG: Property: <Name:\\s+redirect,\\s+STRING:\\s+(\\w+://.+?)>' , stderr ) #NEWLINE# if m : #NEWLINE# #INDENT# redirect = m . group ( 1 ) #NEWLINE# #UNINDENT# if redirect : #NEWLINE# #INDENT# self . logger . debug ( 'Found redirect tcUrl: {0}' , redirect ) #NEWLINE# if ( 'rtmp' in self . params ) : #NEWLINE# #INDENT# ( tcurl , playpath ) = rtmpparse ( self . params [ 'rtmp' ] ) #NEWLINE# rtmp = '{redirect}/{playpath}' . format ( ** locals ( ) ) #NEWLINE# self . params [ 'rtmp' ] = rtmp #NEWLINE# #UNINDENT# if ( 'tcUrl' in self . params ) : #NEWLINE# #INDENT# self . params [ 'tcUrl' ] = redirect