09-12-2013, 09:04 PM | #1876 |
Evangelist
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
|
Jimm, did you consider switching to Beautiful Soup 4? It should be 100% backwards-compatible and have an even more robust parser IIRC.
|
09-12-2013, 11:55 PM | #1877 | |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
I tried again now and ran into problems including it in the plugin. bs4 is designed and packaged to be installed like a good python package--not bundled into the somewhat odd distro zips that calibre plugins use. And I also support CLI and Google AppEngine deployment from the same code. I may investigate a bit more with CLI, but I don't have high hopes. |
|
Advert | |
|
09-13-2013, 02:06 AM | #1878 |
Occassional Beta Tester
Posts: 283
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: Samsung Galaxy Tab 4 (wifi only)
|
Still the same story. Why did I get funny characters instead of quote marks?
http://www.ncisfiction.com/story.php?stid=05113 |
09-13-2013, 10:08 AM | #1879 | |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
You can add this to your personal.ini to fix that story, but you may need to remove it later for other stories: Code:
[www.ncisfiction.net] website_encodings:utf8, iso-8859-1, Windows-1252 |
|
09-13-2013, 11:59 AM | #1880 | |
Occassional Beta Tester
Posts: 283
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: Samsung Galaxy Tab 4 (wifi only)
|
Quote:
|
|
Advert | |
|
09-13-2013, 01:21 PM | #1881 | |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Spoiler:
There's a character that can't be interpreted as UTF8: gift bags �" So the UTF8 decoding fails and it falls back to iso-8859-1 which doesn't care as much. Nothing I can do about it when the author puts bad characters in. Sorry. But it's a completed one-shot, so just copy-pasting the text in using Sigil or Tweak Book should be easy. Last edited by JimmXinu; 09-13-2013 at 01:22 PM. Reason: correct typo |
|
09-14-2013, 04:53 AM | #1882 |
Groupie
Posts: 169
Karma: 8098
Join Date: Jun 2012
Location: Germany
Device: Kindle Voyage, Kindle Oasis
|
If I download an anthology direct with "For Antholoy EPUB" in comments is a summary of the titles of the books.
Is it possible to change that to the Description on the series-page? For example: http://archiveofourown.org/series/10723 |
09-14-2013, 07:37 AM | #1883 | |
Occassional Beta Tester
Posts: 283
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: Samsung Galaxy Tab 4 (wifi only)
|
Quote:
|
|
09-14-2013, 10:55 AM | #1884 | |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
|
|
09-14-2013, 01:34 PM | #1885 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Version 1.7.44 - 14 Sept 2013
|
09-15-2013, 04:46 AM | #1886 |
Groupie
Posts: 169
Karma: 8098
Join Date: Jun 2012
Location: Germany
Device: Kindle Voyage, Kindle Oasis
|
|
09-15-2013, 10:55 AM | #1887 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Attached is a version with a fix for whofic.com.
UPDATE Sep 25, 2013 - Remove obsolete beta versions Last edited by JimmXinu; 09-25-2013 at 04:46 PM. Reason: Remove obsolete beta versions |
09-15-2013, 02:04 PM | #1888 |
Bujavid tekikin
Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
|
Jimm, or anyone who's got this figured out: I've got some downloaded fics where there were cover images included, but since I've set Generate Cover to run by default on new books in FFDL (so anthologies would also have covers generated automatically), it generates the default cover instead of using the included cover image for those fics. Is there a setting where I can automatically generate the default cover for downloaded fics, but still have it respect make_firstimage_cover:true in personal.ini where there's images in the epub?
|
09-15-2013, 04:52 PM | #1889 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Sefiriot -
If it's anthologies you're trying to use Generate Cover for, I use this: Code:
[defaults] add_to_generate_cover_settings: ${anthology}=>true=>FFDL |
09-15-2013, 07:02 PM | #1890 |
Wizard
Posts: 1,158
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Hi,
I'm still receiving the cannot update metadata on ebooks and I think part of the problem is if there is no data to fill in the custom column (like if a story has 0 reviews) I receive the error message that the metadata couldn't be updated. However, the other custom columns filled in information. Here is the message I recieved on the latest story download. calibre, version 1.3.0 ERROR: Error Updating Metadata: <p>An error has occurred while FFDL was updating calibre's metadata for <a href='http://archiveofourown.org/works/968232'>The Victory of Shadows</a>.</p>The ebook has been updated, but the metadata has not. Traceback (most recent call last): File "calibre_plugins.fanfictiondownloader_plugin.ffdl_ plugin", line 1113, in update_books_loop File "calibre_plugins.fanfictiondownloader_plugin.ffdl_ plugin", line 1512, in update_metadata File "site-packages\calibre\db\legacy.py", line 646, in set_custom File "site-packages\calibre\db\cache.py", line 939, in set_field File "site-packages\calibre\db\write.py", line 509, in set_books File "site-packages\calibre\db\write.py", line 509, in <dictcomp> File "site-packages\calibre\db\write.py", line 88, in adapt_number ValueError: invalid literal for int() with base 10: '' |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Count Pages | kiwidude | Plugins | 1750 | 04-07-2024 01:20 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Resize Cover | kiwidude | Plugins | 95 | 03-16-2024 11:55 PM |
[GUI Plugin] Find Duplicates | kiwidude | Plugins | 1096 | 03-16-2024 11:28 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |