![]() |
#9706 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2024
Device: Koba Aura
|
Quote:
Hi JimmXinu, I was told by the author of ActionChains, that if you add the code above to a file called action_chains.py and save that file to the root directory of your plugin it will automatically add this to the imported events in action chain. I tried this out while only changing the name in your code and it works fine for me. would you consider adding such a file in a future version? also a tip for other users: if you use this and count pages plugin started from FFF you may run into issues if count pages and some actions of your chain run simultainiously. only your action chain or the count pages may be performed for some books. Guess some actions put a lock on some attributes or the whole book. To prevent this just disable count pages from the FFF plugin in run it from your action chain and set the checkbox to wait for it to finish |
|
![]() |
![]() |
![]() |
#9707 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,415
Karma: 4276871
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
That code & quote are a post I made when I added basic support for Action Chains.
I don't see anything in the Action Chains thread about this recently, so I don't know what capink may have said about it. There's some discussion from 2021 about action_chains.py, but at the time it was called "Experimental". If there's a post declaring it no longer experimental, I didn't find it. |
![]() |
![]() |
![]() |
#9708 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,927
Karma: 62040409
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
It's in this thread: https://www.mobileread.com/forums/sh...=341497&page=5
|
![]() |
![]() |
![]() |
#9709 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,415
Karma: 4276871
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Version Released
Version 4.36.0 - 2024-07-01 - Built-in Event For Action Chains plugin - Catch bad href searches during internal link anchor search. - adapter_spiritfanfictioncom: use_basic_cache:true - adapter_spiritfanfictioncom: Cheesy fix for py2 not knowing %z in dates. - New Site: SpiritFanfiction.com Portuguese language site (#1078) thanks kilandra - XF2: SB/SV changed the header for thread_status - adapter_ficbooknet: adapter_ficbooknet: Better fixes for py2 from dbhmw - adapter_ficbooknet: Fix breakage for proxies & add covers #1077 - #1076, thanks dbhmw Hopefully I don't regret including this last minute change. |
![]() |
![]() |
![]() |
#9710 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,128
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
The Experimental part has to do with the second modules aspect. This part of the API is not used in any of my plugins, and I am not sure it is currently implemented in the best possible way. I've updated the post to differentiate between the two. Last edited by capink; 07-01-2024 at 11:55 PM. |
|
![]() |
![]() |
![]() |
#9711 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jul 2020
Device: none
|
Bit of a strange request. I have a bunch of ao3 HTML files. The author deleted his stories from the ao3 website, but before deleting he downloaded his stories in the html format, which he provides as an archive.
I'd like to convert them to EPUBs, formatted in the classic FanFicFare way. Is there a way I can feed the html files to fanficfare and have it convert them for me? Maybe through the CLI? If the code needs to be modified, I'm decent at coding, so if you could provide even a brief roadmap, I'll try my hand at it. |
![]() |
![]() |
![]() |
#9712 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2024
Device: Koba Aura
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#9713 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,415
Karma: 4276871
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Example: Code:
[teststory:1000] ## Add additional sections with different numbers to get different ## parameters for different story urls. ## test1.com?sid=1000 # note the leading commas when doing add_to_ with valid_entries and *_list add_to_valid_entries:,favs title:Testing New Feature {{storyId}} author_list:Bob Smith authorId_list:45 authorUrl_list:http://test1.com?authid=45 datePublished:2013-03-15 dateUpdated:2013-04-15 numWords:1456 favs:56 series:The Great Test [4] seriesUrl:http://test1.com?seriesid=1 rating:Tweenie category_list:Harry Potter,Furbie,Crossover,Puella Magi Madoka Magica/魔法少女まどか★マギカ,Magical Girl Lyrical Nanoha genre_list:Fantasy,Comedy,Sci-Fi,Noir warnings_list:Swearing,Violence characters_list:Bob Smith,George Johnson,Fred Smythe chapter_urls: file://....,Chapter 1 Title file://....,Chapter 2 Title file://....,Chapter 3 Title |
|
![]() |
![]() |
![]() |
#9714 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jul 2024
Device: Kidler
|
Gracias
Quote:
|
|
![]() |
![]() |
![]() |
#9715 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,927
Karma: 62040409
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
[archiveofourown.org] add_to_keep_html_attrs:,title,align,blockquote,div [https://archiveofourown.org/works/55777813] strip_chapter_numbers: true add_to_keep_html_attrs:,title,blockquote,div keep_empty_tags:td,th EDIT: Also, a separate issue - upon downloading any fanfics from this site, it doesn't seem to be picking up the category, only the extracategory defined in defaults.ini (and if I blank it out in personal it results in no categories). Is this something intended or the adapter not working as expected? Last edited by ownedbycats; Yesterday at 03:14 AM. |
![]() |
![]() |
![]() |
#9716 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jul 2024
Device: kindle paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#9717 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,051
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
AND Next to the image filename (both are required to be a books 'Cover' |
|
![]() |
![]() |
![]() |
#9718 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Mar 2014
Device: kindle/calibre
|
Fanfiction.Net Gives Me Trouble
I had hoped this latest version would help me update the stories I follow on fanfiction.net. Unfortunately, I have only more errors. First I got an error saying:
"HTTP Error in FFF '403 Client Error: Forbidden for url:https://www.fanfiction.net/s/126004882/1/'(403)." So I changed my browser to Firefox and changed the browser_cache_path to: C:\Users\<my-username>\AppData\Local\Mozilla\Firefox\Profiles\2 oc00l9a.default-release\cache2 I now get a different error: "Directory does not contain a known browser cache type: 'C:\Program Files\Calibre2'" Now I am really confused. Any ideas? Thanks in advance! ************************************************** *** Copy of Safe.ini: [defaults] is_adult:true ## Fanfiction.net workaround start ## 1. Figure out where your browser cache directory is and in personal.ini (see INI File page for location) ## set browser_cache_path under [defaults]. Many browsers will tell you your cache location if you enter about:cache ## into the address bar. There are additional suggestions listed below. ## ## 2. Set use_browser_cache:true under [www.fanfiction.net]. ## 3. Navigate in your browser to chapter 1 of the the story you want to download. ## 4. Click the cover image thumbnail to see the bigger version--if you care about covers. ## 5. Click the author link once if you care about not getting the author image as cover. ## 6. Click through all the chapters of the story. Or, if you are updating an existing story, click the first and last chapters (or all new chapters). ## Note: If you see a Cloudflare page before you see a story chapter page (usually when you first go to the site), that page is ## not loaded in cache correctly. You need to load it again by clicking in the address bar and hitting Enter (remove ?__cf... ## you may see), or by clicking to a different chapter/page and clicking a link back (not your browser back button). You may ## also need to hit Ctrl-R or click the reload button--if you see a 'Resend data' dialog on reload, you aren't on the direct page yet. ## Also see the section below about WebToEpub.(https://github.com/JimmXinu/FanFicFa...ture#WebToEpub) ## Download story in FanFicFare as normal. ## Alternatively, starting with v4.20, you can skip steps 3-6 and instead set open_pages_in_browser:true in personal.ini. FFF will open ## pages it doesn't already find in browser cache in your default browser to populate the browser cache. This requires that you use your default ## browser with browser_cache_path. browser_cache_path:C:\Users\<my-username>\AppData\Local\Mozilla\Firefox\Profiles\2 oc00l9a.default-release\cache2 [epub] include_images:true keep_summary_html:true [www.fanfiction.net] ## slow_down_sleep_time:2 username:XXXXXXXX password:XXXXXXXX use_browser_cache:true open_pages_in_browser:true ## This section will override anything in the system defaults or other ## sections here. [overrides] ## default varies by site. Set true here to force all sites to ## collect series. #collect_series: true |
![]() |
![]() |
![]() |
Tags |
fanfiction |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 494 | 05-18-2024 02:34 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 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 |