View Single Post
Old 11-08-2011, 10:30 AM   #12
mattst
Enthusiast
mattst began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Nov 2011
Device: Kindle
Quote:
Originally Posted by Starson17 View Post
That's odd. I've seen several recipes that have tag settings, but don't produce tags in the calilbre GUI. I tested one just before posting and it failed. I've never looked into it, but I vaguely recall a post saying it can't be done, and I know I tried it once before and it failed. Would you post a recipe that sets tags and let me try it?
Quote:
Originally Posted by kovidgoyal View Post
The OP is probably talking about the tags in the output file when converted via the command line.
Yes kovidgoyal is exactly right.

Code:
class Whatever(BasicNewsRecipe):

...
    tags = 'news, sport'
...
    conversion_options = { 'tags' : tags }
...

ebook-convert Whatever.recipe out.mobi
The tags 'news, sport' are shown when out.mobi is imported to Calibre.

HTH.

PS. You replied while I was writing my reply!
mattst is offline   Reply With Quote