Commit graph

3499 commits

Author SHA1 Message Date
Eli Schwartz
4d1be812e8 python3: use the io module everywhere
Make the calibre plugin usage work on python3. Since FanFicFare does not
support python 2.5, make it work by using the modern idiom.

Essentially, six.StringIO and six.BytesIO makes no sense to use
anywhere, since any code that works on python3 at all will also work
with the io module in python >= 2.6. The only caveat is that the
unadorned str type in python2 works with neither, but it is always best
to be explicit and use either unicode or bytes.
2019-12-17 10:44:06 -06:00
Eli Schwartz
15a79ee0ca python3: decode the bytes received from get_resources()
We're combining it with a str type.
2019-12-17 10:44:06 -06:00
Eli Schwartz
a2c558d864 python3: fix incorrect use of merging two dictionaries
In python2, this was inefficient, because it allocated *three* lists of
tuples, before finally generating a dict based on them. In python3, it
fails because you cannot combine the dict_items() type.

Moreover, retval was always a function-local dictionary used purely for
returning the value, so dict1.update(dict2) will always yield the
correct result, and we don't even need to create a copy to avoid
mutating the original dictionary.
2019-12-17 10:44:06 -06:00
Eli Schwartz
dc77754c1a python3: use modern exception syntax 2019-12-17 10:44:06 -06:00
Eli Schwartz
4a3640cc33 python3: enforce use of absolute imports
Where relative imports are currently being relied upon, do this
explicitly.
2019-12-17 10:44:06 -06:00
Jim Miller
517082f4d1 Bump Release Version 3.14.0 2019-12-16 13:38:44 -06:00
Jim Miller
72e9054b1f Bump Test Version 3.13.10 2019-12-07 16:16:27 -06:00
Jim Miller
5012f64156 Different email URL for royalroad.com. Closes #452 2019-12-06 21:05:36 -06:00
Jim Miller
b945001851 Bump Test Version 3.13.9 2019-12-06 14:27:05 -06:00
Jim Miller
3b0b37920f Use image pages when available for adapter_fictionmaniatv 2019-12-06 14:26:52 -06:00
Jim Miller
6f3d4bc3af Bump Test Version 3.13.8 2019-12-02 13:58:48 -06:00
Jim Miller
ea013468e1 Update adapter_fictionmaniatv to use HTML versions vs text by default. 2019-12-02 13:58:47 -06:00
Jim Miller
816237116d Add to debug output to plugin. 2019-12-02 13:52:28 -06:00
Jim Miller
b8357c409c Update translations. 2019-12-01 10:39:53 -06:00
Jim Miller
b717b0b2a2 Merge branch 'master' of https://github.com/JimmXinu/FanFicFare 2019-11-30 17:26:08 -06:00
Jim Miller
2d4cda3ff9
Web Service Shutdown 2019-11-30 17:25:41 -06:00
Jim Miller
5f9ef422dd Closing Web Service Announcement. 2019-11-30 17:03:37 -06:00
Jim Miller
6ba2fdc776 Add 'button menu' option strings for translation. 2019-11-29 09:30:12 -06:00
Jim Miller
c732f52bb7 Bump Test Version 3.13.7 2019-11-26 12:47:38 -06:00
Jim Miller
a941dae620 New Site fanfics.me (Russian langauge site). 2019-11-26 12:47:21 -06:00
Jim Miller
879f4bc062 Bump Test Version 3.13.6 2019-11-23 19:18:33 -06:00
Jim Miller
e74af328cf Bump Test Version 3.12.6 2019-11-23 16:34:08 -06:00
Jim Miller
73a2708fa1 Base_eFiction - Get Rating/Rated from TOC page if not found on print page. Remove from 2 individual adapters. 2019-11-23 16:32:20 -06:00
Jim Miller
bb439de0e4 Bump Test Version 3.13.5 2019-11-23 10:38:04 -06:00
Jim Miller
f0e1ec7c41 Failsafe for max_zalgo setting. Closes #449. 2019-11-23 10:38:03 -06:00
Jim Miller
f0b139085e DON'T use pagecache in adapter_mediaminerorg. Causes SSL error in Calibre... 2019-11-23 10:38:03 -06:00
Jim Miller
5f8703059e Use pagecache in adapter_mediaminerorg. 2019-11-23 10:24:16 -06:00
Jim Miller
d5f67b1244 Bump Test Version 3.13.4 2019-11-22 21:41:51 -06:00
Jim Miller
45e336b61e Add plugin option for toolbar button to pop menu. 2019-11-22 21:41:29 -06:00
Jim Miller
666a9c958c Bump Test Version 3.13.3 2019-11-19 13:17:48 -06:00
Jim Miller
aaceecef99 Fix AO3 chapterstotal replace_metadata for multi digits. 2019-11-19 13:17:35 -06:00
Jim Miller
716679b012 Bump Test Version 3.13.2 2019-11-18 14:58:48 -06:00
Jim Miller
d389d2b12e Add <div class='fff_chapter_notes' around AO3 chapter head/foot notes. 2019-11-18 14:58:17 -06:00
Jim Miller
17b080c932 Bump Test Version 3.13.1 2019-11-17 11:36:27 -06:00
Jim Miller
31182e18fc Closes #466 - Remove feature to save cookiejar between downloads and BG jobs--causes some obscure problems with QQ at least. 2019-11-17 11:36:07 -06:00
Jim Miller
333444371c Bump Release Version 3.13.0 2019-11-15 11:51:04 -06:00
Jim Miller
6de5f07ffc Set Google Engine max_instances: 1 2019-11-15 11:50:23 -06:00
Jim Miller
7669cac324 Update translations. 2019-11-15 11:49:19 -06:00
Jim Miller
afadca7586 SB appears to have fixed OP Email notifications--and
fetch_last_page didn't always help anyway.

Revert "SB needs fetch_last_page again after all."

This reverts commit 9ce631c5c0.
2019-11-12 21:03:08 -06:00
Jim Miller
1897506613 Bump Test Version 3.12.14 2019-11-11 14:39:00 -06:00
Jim Miller
8d2f9198c2 Add some code to handle 24 hr clocks w/o changing adapters. 2019-11-11 14:38:30 -06:00
Jim Miller
f531a6293b Bump Test Version 3.12.13 2019-11-09 10:28:08 -06:00
Jim Miller
c8d25aa07c Remove site www.13hours.org. Moved to AO3. 2019-11-09 10:25:57 -06:00
Jim Miller
264c5473f0 Remove site lotrfanfiction.com - Closed as per web site. 2019-11-09 10:24:31 -06:00
Jim Miller
d7902a9c1e Remove site twilightarchives.com - Closed as per web site. 2019-11-09 10:20:57 -06:00
Jim Miller
96aeab1ddf Adding a little debug output. 2019-11-09 10:17:45 -06:00
Jim Miller
7db7ce7337 Bypass expired SSL cert by not using SSL. adapter_spikeluvercom 2019-11-09 10:14:27 -06:00
Jim Miller
8d95a8bab2 Bypass expired SSL cert by not using SSL. adapter_thehookupzonenet 2019-11-09 10:13:49 -06:00
Jim Miller
68b2a816fc Don't escape # in URLs, causes problems with ficbook.net. 2019-11-09 08:38:12 -06:00
Jim Miller
8998bb482b Bump Test Version 3.12.12 2019-11-08 22:19:03 -06:00