How to use epub embedded meta-data

Hi
I have a lot of epubs with various random formatted filenames. I would like to rename the files based on the embedded metadata in the epub (along the lines of what I can do with PDFs where I can reference the content of the pdf). I have found where I can set a condition based on kind=epub, but I can't see how I would reference the title and author in the epub's metadata.
Is this something that Hazel can do?
Thank you
Cheers, Liam
I have a lot of epubs with various random formatted filenames. I would like to rename the files based on the embedded metadata in the epub (along the lines of what I can do with PDFs where I can reference the content of the pdf). I have found where I can set a condition based on kind=epub, but I can't see how I would reference the title and author in the epub's metadata.
Is this something that Hazel can do?
Thank you
Cheers, Liam