Including Cover in Cli

16 views
Skip to first unread message

Luca

unread,
Sep 17, 2024, 6:33:46 PM9/17/24
to FanFicFare -- Downloader for FanFiction
Hey there,

First, thank you so much for your work on this!

I've been implementing my own personal pipeline using fanficfare CLI in python. I can't, however, seem to be able to get the CLI to work like a standard calibre run of a url would work in the plugin. My ebooks never have covers (using royalroad). 

Also, passing output_filename only allows directories in the path when in the .ini, not in the commandline? How would I call fff like the commandline does? I've just been passing args to cli.main()..

Thanks in advance!

Jim Miller

unread,
Sep 17, 2024, 6:47:43 PM9/17/24
to fanfic-d...@googlegroups.com
The include_images setting defaults to false in CLI.  You need (at
least) include_images:true under [epub] in personal.ini or where ever
you've put your settings.

Setting path with fanficfare -o
'output_filename=books\${title}-${siteabbrev}_${storyId}${formatext}'
URL works for me.  You need to properly quote and/or escape for your shell.

As for how you'd do that calling main(), you assemble the equivalent
list to the desired CLI params:

main(["-d","-o",
"output_filename=books/${title}-${siteabbrev}_${storyId}${formatext}",
      "test1.com?sid=5"])
Reply all
Reply to author
Forward
0 new messages