#NEWLINE# def get_video_data( self , item ) : #NEWLINE# #INDENT# files = [ VideoFile ( url = enclosure . get ( 'url' ) , mime_type = enclosure . get ( 'type' ) , length = ( enclosure . get ( 'filesize' ) or enclosure . get ( 'length' ) ) ) for enclosure in get_accepted_enclosures ( item ) ] #NEWLINE# data = { #NEWLINE# #INDENT# 'title' : item . title , #NEWLINE# 'description' : item . description , #NEWLINE# 'thumbnail_url' : item . media_thumbnail [ 0 ] [ 'url' ] , #NEWLINE# 'publish_datetime' : struct_time_to_datetime ( item . published_parsed ) , #NEWLINE# 'user' : item [ 'kaltura_userscreenname' ] , #NEWLINE# 'files' : ( files or None ) , #NEWLINE# #UNINDENT# } #NEWLINE# return data