#NEWLINE# def _build_m3u_filename( basename ) : #NEWLINE# #INDENT# 'Builds unique m3u filename by appending given basename to current\n    date.' #NEWLINE# basename = re . sub ( '[\\s,/\\\\\'\\"]' , '_' , basename ) #NEWLINE# date = datetime . datetime . now ( ) . strftime ( '%Y%m%d_%Hh%M' ) #NEWLINE# path = normpath ( os . path . join ( config [ 'importfeeds' ] [ 'dir' ] . as_filename ( ) , ( ( ( date + '_' ) + basename ) + '.m3u' ) ) ) #NEWLINE# return basename