@command('url_file\\s(\\S+)')
def yt_url_file(file_name):
 try:
  with open(file_name, 'r') as fo:
   output = ' '.join([line.strip() for line in fo if line.strip()])
 except IOError:
  g.message = ((c.r + 'Error while opening the file, check the validity of the path') + c.w)
  g.content = (g.content or content.generate_songlist_display(zeromsg=g.message))
  return
 yt_url(output)

@ command ( 'url_file\\s(\\S+)' ) def yt_url_file ( file_name ) : try : with open ( file_name , 'r' ) as fo : output = ' ' . join ( [ line . strip ( ) for line in fo if line . strip ( ) ] ) except IOError : g . message = ( ( c . r + 'Error while opening the file, check the validity of the path' ) + c . w ) g . content = ( g . content or content . generate_songlist_display ( zeromsg = g . message ) ) return yt_url ( output )
access a list of urls in a text file .