View Single Post
Old 09-28-2013, 10:32 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,826
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
Note the Tick: Read from file contents (not filename)
That pattern is ignored in this case
Yes that's what I thought too. Now that you've made me take a closer look I think have stumbled on a way to make it 'do both'.

If the file contains no metadata apart from a cover and you add the book via the Windows Send To feature using that template, it will take the author and title from the file name and the cover from the book.

So far its worked for me on 2,878 files named '<author> - <title>.zip' that I have added to Calibre via the Windows Send To. The library I am working on is a comic book archive that intend giving to someone as a present, so the zips only have images. If I don't have the box ticked then calibre does not extract the first image as the cover.

I just tested the Windows Send To method on an RTF with no metadata and a PDF with no metadata - in both instances it took the author and title from the file name and in the case of the PDF the 1st page came up as the cover, the RTF had no image so it got no cover.

For my reference and journal libraries I also have the box ticked with the same regex, for those items (which are mainly PDF's) I don't use the Windows Send To, the books are added via the auto add feature - in that case the metadata is taken from the book and if there isn't any, then author and/or title are Unknown.

The feature I'm exploiting is obviously this one ==>> the calibre command. I maybe using it in an unanticipated manner (ie via Send To) that results in this serendipitous (for me) behaviour.

@Codetoad13 - sorry to give you a bum steer, but maybe I've given you a clue.

Calibre is full is surprises - most of them pleasant.

BR

Last edited by BetterRed; 09-28-2013 at 10:35 PM.
BetterRed is offline   Reply With Quote