#NEWLINE# def _create_stream( self , source ) : #NEWLINE# #INDENT# url = source [ 'file' ] #NEWLINE# if urlparse ( url ) . path . endswith ( 'm3u8' ) : #NEWLINE# #INDENT# streams = HLSStream . parse_variant_playlist ( self . session , url ) #NEWLINE# for stream in streams . items ( ) : #NEWLINE# #INDENT# ( yield stream ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# name = source . get ( 'label' , 'vod' ) #NEWLINE# ( yield ( url , HTTPStream ( self . session , url ) ) )