#NEWLINE# def _real_extract( self , url ) : #NEWLINE# #INDENT# episode = int ( self . _match_id ( episode ) ) #NEWLINE# video_thumbnail = ( 'http://fernsehkritik.tv/images/magazin/folge%s.jpg' % episode ) #NEWLINE# start_webpage = self . _download_webpage ( ( 'http://fernsehkritik.tv/folge-%s/Start' % episode ) , episode ) #NEWLINE# playlist = self . _search_regex ( 'playlist = (\\[.*?\\]);' , start_webpage , 'playlist' , flags = re . DOTALL ) #NEWLINE# files = json . loads ( re . sub ( '{[^{}]*?}' , '{}' , playlist ) ) #NEWLINE# videos = [ ] #NEWLINE# for ( i , _ ) in enumerate ( files , 1 ) : #NEWLINE# #INDENT# video_id = ( '%04d%d' % ( episode , i ) ) #NEWLINE# video_url = ( 'http://fernsehkritik.tv/js/directme.php?file=%s%s.flv' % ( episode , ( '' if ( i == 1 ) else ( '-%d' % i ) ) ) ) #NEWLINE# videos . append ( { #NEWLINE# #INDENT# 'ext' : 'flv' , #NEWLINE# 'id' : video_id , #NEWLINE# 'url' : video_url , #NEWLINE# 'title' : clean_html ( get_element_by_id ( 'eptitle' , start_webpage ) ) , #NEWLINE# 'description' : clean_html ( get_element_by_id ( 'contentlist' , start_webpage ) ) , #NEWLINE# 'thumbnail' : video_thumbnail , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# '_type' : 'multi_video' , #NEWLINE# 'entries' : videos , #NEWLINE# 'id' : ( 'folge-%s' % episode ) , #NEWLINE# #UNINDENT# }