Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 01-21-2026, 12:48 PM   #11626
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,252
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2026-01-21
- Image Handling: Cache image failure within a story download
- Image Handling: Save original URL on image failure marked 'failedtoload'
- Image Handling: Fix dedup_img_files in new handling

Failure handling improved.

dedup_img_files still has one oddity that it changes the origurl/longdesc to the dedup'ed image, but only on the next update.
JimmXinu is offline   Reply With Quote
Old 01-21-2026, 04:22 PM   #11627
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,503
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: AO3 series page only displays 20 books before new page. Put one with severa pages in, got every story. How does it work?
ownedbycats is offline   Reply With Quote
Old 01-21-2026, 04:46 PM   #11628
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,252
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
AO3, or rather base_otw_adapter, is one of the few (only?) supported sites with dedicated code for collecting series; including following the pagination.
JimmXinu is offline   Reply With Quote
Old 01-21-2026, 05:44 PM   #11629
Eridyne
Junior Member
Eridyne began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2026
Device: Kobo Libra Colour
Okay. For a specific story example, I'll use https://forums.sufficientvelocity.co...a-varga.32119/ as the URL.

The intent is to concatenate an arbitrary string, which for this example is "WormFic - ", with the contents of the preexisting 'site' variable, which in this case is "forums.sufficientvelocity.com".
The end result should be the string "WormFic - forums.sufficientvelocity.com", and that should end up in the custom Calibre column "collection", for use with Kobo's Collections feature.

As mentioned, I can get either a string (e.g., "WormFic") or the 'site' variable (e.g., "forums.sufficientvelocity.com") into the "collection" column just fine, but I'd like to combine those, preferably without adding redundant columns to the Calibre DB.
Eridyne is offline   Reply With Quote
Old 01-21-2026, 06:39 PM   #11630
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,252
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Eridyne View Post
The intent is to concatenate an arbitrary string, which for this example is "WormFic - ", with the contents of the preexisting 'site' variable, which in this case is "forums.sufficientvelocity.com".
The end result should be the string "WormFic - forums.sufficientvelocity.com", and that should end up in the custom Calibre column "collection", for use with Kobo's Collections feature.
As mentioned, there's no specific string concat mechanism, but replace_metadata can do a lot. Here's one approach.

First, don't change FFF's site metadata entry--it's assumed to be a domain name and used internally in epub metadata. So we'll make a copy.

Second, I assume you don't actually mean it when you say an arbitrary string. You want Worm fics specifically.
Code:
[defaults]
add_to_extra_valid_entries:,cat_site
include_in_cat_site:site

add_to_replace_metadata:
 cat_site=>^(.*)$=>WormFic - \1&&category==Worm
## Add more lines for Star Trek, Warhammer, whatever.
## Be aware you could get more than one then.
It's honestly probably easier to turn it around and copy category and append site name, but this is what you asked for.

And you use custom_columns_settings to populate the Calibre column with cat_site. You said you have that part already.
JimmXinu is offline   Reply With Quote
Old 01-21-2026, 07:10 PM   #11631
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,503
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question. Maybe asked before but the search here is awful

On AO3, & is platonic, / is romantic. Some authors tag both of them on works.


So, say that a fanfic has "Shepard & Vakarian, Shepard/Vakarian," or "Kirk & Spock, Kirk/Spock." I'd like to remove the & tag in this instance. Conditionals don't work when its the same metadata. StoryUrl sections to exclude would work, but enough effort that not worth bother. Any other way?
ownedbycats is offline   Reply With Quote
Old 01-21-2026, 09:56 PM   #11632
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,252
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
So, say that a fanfic has "Shepard & Vakarian, Shepard/Vakarian," or "Kirk & Spock, Kirk/Spock." I'd like to remove the & tag in this instance. Conditionals don't work when its the same metadata. StoryUrl sections to exclude would work, but enough effort that not worth bother. Any other way?
This seems to work:
Code:
add_to_replace_metadata:
 ships_LIST=>([^,]+) &(?:amp;)? ([^,]+), \1/\2=>\1/\2
Won't work if ships aren't in order. Also benefits from sort_ships:true. Will fail when an author inevitably misspells a name in one ship, but not the other.

Something else to note:
Code:
## By default, entries listed in include_subject_tags are used as
## lists, skipping any <entry>_LIST processing in
## replace_metadata/etc.  You can instead use <entry>_LIST in
## include_subject_tags to get the whole list as one string.
So you need to change ships to ships_LIST in include_subject_tags if you want this to work for EPUB subjects and Calibre's Tags.
JimmXinu is offline   Reply With Quote
Old 01-22-2026, 02:30 AM   #11633
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,503
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
It works!
ownedbycats is offline   Reply With Quote
Old 01-22-2026, 03:34 PM   #11634
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,252
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2026-01-22
- Image Handling: Rename dedup'ed images on first pass, too.
- Image Handling: Remove unused images properly with dedup_img_files
JimmXinu is offline   Reply With Quote
Old 01-23-2026, 09:58 AM   #11635
Demanih
Junior Member
Demanih began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2019
Device: note4
When saving the history from ficbook.net the formatting of the text is lost, all in one line ((
Demanih is offline   Reply With Quote
Old 01-23-2026, 11:23 AM   #11636
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,252
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Demanih View Post
When saving the history from ficbook.net the formatting of the text is lost, all in one line ((
.... If you're just venting, okay.

But if you're looking for help, I have no idea what you're talking about.
JimmXinu is offline   Reply With Quote
Old 01-24-2026, 11:35 AM   #11637
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,252
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2026-01-24
- adapter_royalroadcom: Fix login failure reporting #1302
JimmXinu is offline   Reply With Quote
Old Yesterday, 03:01 PM   #11638
Demanih
Junior Member
Demanih began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2019
Device: note4
On the website ficbook.net everything is saved without formatting, in one line.

As an example, here is a small (neutral) fic in Russian https://ficbook.net/readfic/019a65c2...8-5772285d1969

In the original:

Spoiler:

Последний этаж проносится перед глазами, и стеклянные двери плавно расходятся, чтобы лифт мог выплюнуть запоздалого пассажира.

Рафен спешит, на ходу поправляет складку на рукаве, отряхивает на бегу прилипший к брюкам сор. Он знает, что опаздывает, что у него осталось не больше часа, а потом…

Ночная смена провожает его взглядом, расступившись и коротко кивнув. Приветствуют. Знают. Даже не досматривают, потому что в этом нет необходимости. Раф никогда не пойдет против их хозяина. Ни-ког-да.

Ключ-карта бряцает о коридорную тумбу. Царапает лак сброшенная впопыхах маска-респиратор. Раф морщится, насколько его шум входит в диссонанс с льющейся из встроенных динамиков тихой классической мелодией. За прошедшие пять лет, что он здесь живёт, он так и не достиг гармонии с тем, кого считает примером для подражания. Они все ещё недостаточно созвучны.

— Я вернулся.

Громко. Очень громко. С какой-то детской радостью в интонациях. Тоже несколько неуместной в их общем доме. В их маленьком семейном склепе, пахнущем жасминовым чаем, хризантемами и сахарно-ирисовой пудрой. Сколько Раф себя помнит, этот дом живёт вне дня и ночи. Здесь всегда одинаково сумрачно из-за приглушённого искусственного освещения и плотных римских штор на окнах. Неизменно чёрных, не пропускающих ни единого луча. Прохладно из-за кондиционера, поддерживающего определённую температуру. И сухо, хотя одна из стен утопает в цветах и журчит маленьким домашним багряным водопадом, перекатывающим крохотные камешки на дне. Время здесь словно бы застывает. Тянется густой патокой. Склеп, как он есть…

— Я… я дома…

Лиос даже не отрывается от томика со стихами очередного сверхмодного поэта, метящего в классики. Жестом приглашает пройти, присоединиться к нему за чашкой чая и дать себя увлечь музыке. В рассеянном свете старший брат опять куда больше похож на мифического ирландского ши или романтическое видение смерти Эвелин де Морган, а не на хозяина похоронного бюро. И магии созданного им образа подчиняешься. Раф не сопротивляется этому наваждению, и лишь тонкий серебряный ободок фарфоровой чашки, выставленной в честь праздника, напоминает о тревоге, что гнала его по запылённым кирпично-красным от чумной взвеси в воздухе улицам.


After saving via FFF in calibre, we get this option:

Spoiler:

Последний этаж проносится перед глазами, и стеклянные двери плавно расходятся, чтобы лифт мог выплюнуть запоздалого пассажира. Рафен спешит, на ходу поправляет складку на рукаве, отряхивает на бегу прилипший к брюкам сор. Он знает, что опаздывает, что у него осталось не больше часа, а потом… Ночная смена провожает его взглядом, расступившись и коротко кивнув. Приветствуют. Знают. Даже не досматривают, потому что в этом нет необходимости. Раф никогда не пойдет против их хозяина. Ни-ког-да. Ключ-карта бряцает о коридорную тумбу. Царапает лак сброшенная впопыхах маска-респиратор. Раф морщится, насколько его шум входит в диссонанс с льющейся из встроенных динамиков тихой классической мелодией. За прошедшие пять лет, что он здесь живёт, он так и не достиг гармонии с тем, кого считает примером для подражания. Они все ещё недостаточно созвучны. — Я вернулся. Громко. Очень громко. С какой-то детской радостью в интонациях. Тоже несколько неуместной в их общем доме. В их маленьком семейном склепе, пахнущем жасминовым чаем, хризантемами и сахарно-ирисовой пудрой. Сколько Раф себя помнит, этот дом живёт вне дня и ночи. Здесь всегда одинаково сумрачно из-за приглушённого искусственного освещения и плотных римских штор на окнах. Неизменно чёрных, не пропускающих ни единого луча. Прохладно из-за кондиционера, поддерживающего определённую температуру. И сухо, хотя одна из стен утопает в цветах и журчит маленьким домашним багряным водопадом, перекатывающим крохотные камешки на дне. Время здесь словно бы застывает. Тянется густой патокой. Склеп, как он есть… — Я… я дома… Лиос даже не отрывается от томика со стихами очередного сверхмодного поэта, метящего в классики. Жестом приглашает пройти, присоединиться к нему за чашкой чая и дать себя увлечь музыке. В рассеянном свете старший брат опять куда больше похож на мифического ирландского ши или романтическое видение смерти Эвелин де Морган, а не на хозяина похоронного бюро.
Demanih is offline   Reply With Quote
Old Yesterday, 03:24 PM   #11639
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,252
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Demanih View Post
As an example, here is a small (neutral) fic in Russian https://ficbook.net/readfic/019a65c2...8-5772285d1969
Okay, ficbook is a bit weird--instead of using HTML tags to format story text, they use newline whitespace which requires unusual CSS to show.

FFF's defaults.ini has this for [ficbook.net] to use the whitespace:
Code:
## ficbook.net isn't putting html line breaks in anymore and using
## this CSS instead.
add_to_output_css:
 .part_text {
    word-break: break-word;
    white-space: pre-wrap;
 }
I would suspect that you have changed output_css or keep_html_attrs in your personal.ini in an incompatible way?
JimmXinu is offline   Reply With Quote
Old Yesterday, 03:38 PM   #11640
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 49,826
Karma: 176799834
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
That downloaded epub is a mess using FFFs presets. There is one div used for the entire body text with the lines starting with multiple spaces. OTOH, Sigil's preview and calibres ebook-viewer display it properly. 90% of the CSS classes in the stylesheet and in the body are not used.

I used Sigil to do a 2 minute edit/cleanup and have attached the output to this message.
Attached Files
File Type: epub Litsienziia - Xierillae.epub (266.2 KB, 1 views)

Last edited by DNSB; Yesterday at 03:45 PM.
DNSB is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 527 08-15-2025 02:36 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 06:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 01:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 07:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 07:58 AM.


MobileRead.com is a privately owned, operated and funded community.