title_body: How to rename epubs when the file name is a numeric string? I have a number of EPUB titles that need renaming, from the likes of "1631214659.epub" to "Moon's Napa and Sonoma" and so on. They load into Calibre under their actual titles, but I still need to rename the source file appropriately for archiving. I've tried copying each file's string of identifier numbers into Google after the search term EPUB, and that usually works, but then I have to copy the resulting title text string and paste it into the file name each time. I'm wondering if there's an app that "reads" the file and can display or even change the book title on the fly.
  
  I know nothing about ebook conversion beyond what Calibre affords, so if the info is viewable that way, I've missed it.
upvoted_answer: I wrote a small python script to do that.
  pip install epub
  Install the epub library and run the below script with a sibling directory containing all your epub files to be renamed.
  import os
  import glob
  import epub
  
  dirName = &quot;books&quot; #the folder containing your epub files, should be in the
                    #directory which contains the script.
                    
  for File in glob.glob(dirName + &quot;\\*.epub&quot;):
      with epub.open_epub(File) as book:
          title = book.opf.metadata.titles[0][0]
  
      os.rename(File, dirName + &quot;\\&quot; + title + &quot;.epub&quot;)
  
  Note : The title should not be too long (not exceeding your os' filename limit).