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 02-11-2023, 05:41 PM   #8056
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: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
I tried to set ''=>#pagecount to see if nulling out the column would allow Count Pages to re-populate it, but it didn't work.
Code:
## Literal strings can be set into custom columns using double quotes.
## Each metadata=>column mapping must be on a separate line and each
## needs to have one space at the start of each line.
You're using single quotes.

Except that setting an Integer type column to empty string doesn't clear it.

In the Calibre GUI, the same is true: if you erase the contents of an int column, it automagically resets back to the previous value when you try to save it. You have to set it to a space to clear it.

But setting an int column to " " (space) from the API throws an error from inside the Calibre code:
Code:
ValueError: invalid literal for int() with base 10: ' '
I'm not entirely sure what, if anything, should be done about that.
JimmXinu is offline   Reply With Quote
Old 02-11-2023, 05:44 PM   #8057
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: 10,991
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I remembered that "None" is how you check for undefined integers in template (example), so I tried putting "None"=>#pagecount. It seems to work.
ownedbycats is online now   Reply With Quote
Advert
Old 02-11-2023, 09:51 PM   #8058
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by ackomb View Post
I tried your style, in one of my own set-up custom columns in a test library and get different results. The last thing I can think of is the type of custom column used. I use a Comma separated text, like tags, shown in text browser type of column.

What type are you using?
Oh that must be why mine is different. It's a "column built from other columns, behaves like tags" so I can use the template function for grouping the word count.
culytera is offline   Reply With Quote
Old 02-11-2023, 10:59 PM   #8059
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: 10,991
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Note that if you have any non-numeric characters in a composite, you'll want to sort by text.

For what it matters, my #purchasecost (non-taglike composite) sorts correctly in tag browser.
Attached Thumbnails
Click image for larger version

Name:	2023-02-12 00_00_45-calibre — __ My Books __ Purchased __.png
Views:	306
Size:	4.7 KB
ID:	199657  
ownedbycats is online now   Reply With Quote
Old 02-12-2023, 05:12 AM   #8060
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by ownedbycats View Post
Note that if you have any non-numeric characters in a composite, you'll want to sort by text.

For what it matters, my #purchasecost (non-taglike composite) sorts correctly in tag browser.
That's the thing, it was already sorted by text. Made another column with the other type that lets me use templates and it's still the same.
Attached Thumbnails
Click image for larger version

Name:	wordcount.jpg
Views:	308
Size:	245.1 KB
ID:	199668  
culytera is offline   Reply With Quote
Advert
Old 02-12-2023, 12:49 PM   #8061
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: 10,991
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
huh, odd -- though since this is getting out of scope of FFF itself, perhaps post a thread in Library Management about it?
ownedbycats is online now   Reply With Quote
Old 02-12-2023, 06:22 PM   #8062
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: 10,991
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I'm having trouble copying the workskin of this (and holy crap wtf is this css?) to add_to_output_css - either errors with half the dialog off-screen (so I can't actually see the important part of the error) or just not working. Any suggestions?

Last edited by ownedbycats; 02-12-2023 at 06:33 PM.
ownedbycats is online now   Reply With Quote
Old 02-12-2023, 06:39 PM   #8063
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: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Read it online? It's < 900 words. The author's "work skin" style is literally longer than the story.

AO3 "work skins" are the only in-line styles (search for style type="text/css") and for whatever reason they flatten the CSS.

If you really must, you should be able to copy that and put a new line after every ';' without issues.

UPDATE: Fun fact: AO3's own epub download doesn't include work skin CSS.

Last edited by JimmXinu; 02-12-2023 at 06:42 PM.
JimmXinu is offline   Reply With Quote
Old 02-12-2023, 06:46 PM   #8064
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: 10,991
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I took a look at my personal.ini, then ran the CSS through Notepad++ to strip out #workskin and double the %'s. It didn't work, but it didn't error...

Eh, read this one on the site I guess.
ownedbycats is online now   Reply With Quote
Old 02-14-2023, 01:15 PM   #8065
ackomb
Zealot
ackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura about
 
Posts: 106
Karma: 4486
Join Date: Mar 2020
Location: Netherlands
Device: i-pad
Quote:
Originally Posted by culytera View Post
That's the thing, it was already sorted by text. Made another column with the other type that lets me use templates and it's still the same.
Well I'm officially out of ideas. I did the exact same thing and it works for me.
So it must be some setting somewhere else that we can't think of.

But ownedbycats is right, this is not an FFF issue but I don't know how/who strips in into a separate thread under library management.
Attached Thumbnails
Click image for larger version

Name:	Naamloos.jpg
Views:	302
Size:	77.9 KB
ID:	199744  
ackomb is offline   Reply With Quote
Old 02-14-2023, 01:31 PM   #8066
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: 10,991
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
See https://www.mobileread.com/forums/sh....php?p=4298490
ownedbycats is online now   Reply With Quote
Old 02-15-2023, 12:04 PM   #8067
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: 10,991
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
When adding a story section for an ffnet story, I copied the entire story URL including the title. Do I need it, or just the ID? (ffnet's restrictions make testing annoying. )

Last edited by JimmXinu; 02-15-2023 at 12:10 PM. Reason: Moved to correct thread
ownedbycats is online now   Reply With Quote
Old 02-15-2023, 12:08 PM   #8068
famewolf
Member
famewolf began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2013
Device: Kindle Paperwhite (10th Gen)
For the story https://www.royalroad.com/fiction/35...t-how-the-hell

Sections hidden behind a spoiler tag on the web site are overwriting text from the story making it unreadable. Example pictures attached.
Attached Thumbnails
Click image for larger version

Name:	2023-02-15_12-04.png
Views:	298
Size:	326.9 KB
ID:	199753   Click image for larger version

Name:	2023-02-15_12-05.png
Views:	292
Size:	557.9 KB
ID:	199754   Click image for larger version

Name:	2023-02-15_12-05_1.png
Views:	313
Size:	216.0 KB
ID:	199755  
famewolf is offline   Reply With Quote
Old 02-15-2023, 12:58 PM   #8069
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: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
When adding a story section for an ffnet story, I copied the entire story URL including the title. Do I need it, or just the ID? (ffnet's restrictions make testing annoying. )
You can leave off the title, but you need the rest:
Code:
[https://www.fanfiction.net/s/99999/1/]
...
Quote:
Originally Posted by famewolf View Post
For the story https://www.royalroad.com/fiction/35...t-how-the-hell

Sections hidden behind a spoiler tag on the web site are overwriting text from the story making it unreadable. Example pictures attached.
That's to do with Calibre's Viewer more than FFF's output.

Viewed in my Kindle (from AZW3--same problem shows in Calibre's Viewer), in a browser or even in Calibre's own Edit book the table scrolls right-left or is squashed to fit.

If you change Calibre Viewer Preferences > Page Layout > Flow mode (instead of Page mode), the table is cut off instead of wrapped over the later text.

I don't know how you'd get Calibre Viewer to do a better job, either with it's own settings or with additional CSS.

Attached is a minimal epub containing only that chapter if anyone else would like to try.
Attached Files
File Type: epub Monroe (Ch 88-88) - Jahx.epub (181.3 KB, 256 views)
JimmXinu is offline   Reply With Quote
Old 02-16-2023, 07:40 PM   #8070
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 70
Karma: 76
Join Date: Apr 2019
Device: none
It looks like Scribblehub changed something today that stops FFF from working. It started from the first book I tried updating today, so it's not a throttling issue. When I went to the site with my browser, I got a screen saying it was checking if my connection was secure. I ran Calibre in debug and reran one to grab the log. Here is the relevant section:

Code:
FFF: DEBUG: 2023-02-16 18:29:52,683: calibre_plugins.fanficfare_plugin.fff_plugin(1125): FanFicFare v4.20.0
FFF: INFO: 2023-02-16 18:29:52,930: calibre_plugins.fanficfare_plugin.prefs(215): Using default settings
FFF: DEBUG: 2023-02-16 18:29:52,964: configurable.py(1050): use_browser_cache:
FFF: DEBUG: 2023-02-16 18:29:52,964: configurable.py(1070): use_basic_cache:true
FFF: DEBUG: 2023-02-16 18:29:52,965: adapter_scribblehubcom.py(133): URL: https://www.scribblehub.com/series/279372/system-change/
FFF: DEBUG: 2023-02-16 18:29:52,965: cache_basic.py(116): 
========== MISS (GET) BasicCache
https://www.scribblehub.com/series/279372/system-change/
FFF: DEBUG: 2023-02-16 18:29:52,966: fetcher_requests.py(114): 
---------- REQ (GET) RequestsFetcher
https://www.scribblehub.com/series/279372/system-change/
FFF: DEBUG: 2023-02-16 18:29:53,121: fetcher_requests.py(127): response code:403
FFF: ERROR: 2023-02-16 18:29:53,121: calibre_plugins.fanficfare_plugin.dialogs(725): Exception: {'title': 'System Change', 'author_sort': 'SunriseCV', 'author': ['SunriseCV'], 'comments': '', 'good': False, 'status': 'Error', 'showerror': True, 'calibre_id': 1981, 'begin': None, 'end': None, 'comment': "HTTP Error in FFF '403 Client Error: Forbidden for url: https://www.scribblehub.com/series/279372/system-change/'(403)", 'url': 'https://www.scribblehub.com/series/279372/system-change/', 'site': 'www.scribblehub.com', 'series': '', 'added': False, 'pubdate': None, 'publisher': 'www.scribblehub.com', 'listorder': 0, 'collision': 'Update EPUB if New Chapters'}:HTTP Error in FFF '403 Client Error: Forbidden for url: https://www.scribblehub.com/series/279372/system-change/'(403)
Traceback (most recent call last):
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\fetchers\fetcher_requests.py", line 128, in request
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\requests\models.py", line 943, in raise_for_status
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.scribblehub.com/series/279372/system-change/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre_plugins.fanficfare_plugin.dialogs", line 712, in do_loop
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 1331, in prep_download_loop
  File "calibre_plugins.fanficfare_plugin.fff_plugin", line 1211, in get_story_metadata_only
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_adapter.py", line 327, in getStoryMetadataOnly
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\base_adapter.py", line 431, in doExtractChapterUrlsAndMetadata
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\adapters\adapter_scribblehubcom.py", line 135, in extractChapterUrlsAndMetadata
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\requestable.py", line 119, in get_request
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\requestable.py", line 111, in get_request_redirected
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\fetchers\base_fetcher.py", line 133, in get_request_redirected
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\fetchers\cache_basic.py", line 122, in fetcher_do_request
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\fetchers\decorators.py", line 102, in fetcher_do_request
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\fetchers\base_fetcher.py", line 106, in do_request
  File "C:\Users\applegaa\AppData\Roaming\calibre\plugins\FanFicFare.zip\fanficfare\fetchers\fetcher_requests.py", line 149, in request
fanficfare.exceptions.HTTPErrorFFF: HTTP Error in FFF '403 Client Error: Forbidden for url: https://www.scribblehub.com/series/279372/system-change/'(403)
FFF: DEBUG: 2023-02-16 18:29:56,267: calibre_plugins.fanficfare_plugin.fff_plugin(2136): update_error_column_loop bad System Change https://www.scribblehub.com/series/279372/system-change/ HTTP Error in FFF '403 Client Error: Forbidden for url: https://www.scribblehub.com/series/279372/system-change/'(403)
FFF: DEBUG: 2023-02-16 18:29:56,348: calibre_plugins.fanficfare_plugin.fff_plugin(1864): set_marked_ids:{1981: 'fff_failed_0000'}
FFF: DEBUG: 2023-02-16 18:29:56,365: calibre_plugins.fanficfare_plugin.fff_plugin(1873): Finished Adding/Updating 0 books.
FFF: DEBUG: 2023-02-16 18:29:56,365: calibre_plugins.fanficfare_plugin.fff_plugin(1876): removed tdir
- Andrew
applegaa 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 523 07-15-2025 06:45 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 09:15 PM.


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