Commit graph

111 commits

Author SHA1 Message Date
Jim Miller
e5bd062c26 Show busy cursor during anthology merge & update. 2020-08-20 16:16:11 -05:00
Jim Miller
e1d087733f For anthologies, look for common val in numbered series00 if not all share 'series'. 2020-07-15 13:46:51 -05:00
Jim Miller
fe6e0263b8 Add 'Series [0]' option for new anthologies. 2020-07-15 12:12:51 -05:00
Jim Miller
3a23924721 Check for epub before polishing cover into it. 2020-06-17 17:15:33 -05:00
Jim Miller
54409dd083 Fix for collision issue with translations and email direct d/l. 2020-06-04 17:26:41 -05:00
Jim Miller
f59f1d0b37 Make sure all timestamps are using Calibre's local_tz. 2020-03-24 20:18:06 -05:00
Jim Miller
4b9bc818d7 Use storyUrl from metadata for checking library, for those sites that make canonical storyUrl difficult, like adapter_literotica. Closes #461 2020-01-17 19:46:49 -06:00
Jim Miller
bfc9c8b45c Make sure storyUrl has &->& and then change it back for Calibre. Matches how authorUrl is handled(in all_metadata). Closes #460 2020-01-09 13:46:44 -06:00
Eli Schwartz
18804a52cf py3: add various python-six fixes 2019-12-17 10:44:06 -06:00
Eli Schwartz
c054449328 py3: get rid of basestring 2019-12-17 10:44:06 -06:00
Eli Schwartz
93e93dee92 py3: fix unicode type 2019-12-17 10:44:06 -06:00
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
dc77754c1a python3: use modern exception syntax 2019-12-17 10:44:06 -06:00
Jim Miller
816237116d Add to debug output to plugin. 2019-12-02 13:52:28 -06:00
Jim Miller
45e336b61e Add plugin option for toolbar button to pop menu. 2019-11-22 21:41:29 -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
96aeab1ddf Adding a little debug output. 2019-11-09 10:17:45 -06:00
Jim Miller
dff90a10df Discard cookie cache on library change--might use different users/settings. 2019-11-03 16:49:07 -06:00
Jim Miller
e9d313f4ab Save cookiejar between downloads during same calibre session, including BG jobs. 2019-10-26 11:16:46 -05:00
Jim Miller
defa942a29 Additional warnings about imaptags added to manually added story URLs. Plus confirm(show_cancel_button=False) where appropriate. 2019-10-01 20:10:28 -05:00
Jim Miller
fbf6a48020 Add feature to automatically add optional tags for stories downloaded from email URLs. 2019-09-12 10:37:12 -05:00
Jim Miller
cc6ccff2b4 Fix for reportorder results when not BG'ed. 2019-07-13 09:22:55 -05:00
Jim Miller
ac72c19676 Plugin: Group reported results better. 2019-07-12 21:54:05 -05:00
Jim Miller
46645c5b93 Change metadata separator to ' & ' when filling 'Contains names' custom columns. 2019-06-13 13:54:48 -05:00
Jim Miller
cbcfd32464 Fix for yet more arbitrary py3 changes breaking code. Fixes #400 2019-06-08 08:26:25 -05:00
Jim Miller
dffb4d3168 Add 'publisher' metadata as a copy of 'site' and use to fill Publisher in Calibre. 2019-05-16 14:54:33 -05:00
Jim Miller
7e80dacd92 Removing all filter()/map() calls--not consistent between Py2/Py3. 2019-05-14 13:12:54 -05:00
Eli Schwartz
c8362433e2 optimization: do not use filter just to get counts of a list
This breaks in python3, because filter returns an iterable filter
object, and it's anyways wrong on python2, because it does extra work to
create a list only to discard it. The best way to do this is to test
each member of the list and abort early as soon as we get the info we
need (that it is non-zero). Or alternatively use sum with a generator
expression.
2019-05-13 13:06:35 -05:00
Jim Miller
0bbe27b9e9 Fix for anthology titles (and generate cover settings) not needing encode() anymore. 2019-05-06 14:15:58 -05:00
Jim Miller
3e5de53984 More fixing for bool metadata values--convert to string when set. 2019-04-14 15:05:27 -05:00
Jim Miller
d423100e6b Update copyright. 2019-01-15 10:38:53 -06:00
Jim Miller
d1849d807c Ignore current Virtual Library when checking for existing story ID. 2019-01-09 12:21:15 -06:00
Jim Miller
e1adbcf128 Refactor busy_cursor, busy cursor around saving rejects & settings, bump copyright years. 2018-11-11 09:58:07 -06:00
Jim Miller
f86d7d39b8 Fix for problem with new collision code and rejected URL. 2018-10-18 13:27:27 -05:00
Jim Miller
8d39ad037e Fix for Calibre Metadata update called with URLs not in library. 2018-10-15 15:05:59 -05:00
Jim Miller
a660b8e023 Add fix calibre title/author cases options, move force title/author sort values to Standard Columns config Tab. 2018-09-27 14:06:39 -05:00
Jim Miller
6717fbfd89 Restore cursor in finally: clauses in case of issues. 2018-08-30 12:56:17 -05:00
Jim Miller
3661966a9b Calibre Plugin: Remove ebook formats before update, overwrite or unnew so that the previouis version ends up in trash instead of just copied over. 2018-06-22 18:02:35 -05:00
Jim Miller
4828a63e22 Clarify some tooltip text and add 'FFF Frozen URL' feature. 2018-05-24 12:31:51 -05:00
Jim Miller
d521cfdcf0 Consolidate URL chapter range code and apply to CLI for #302. 2018-05-08 15:27:42 -05:00
Jim Miller
1dde324b51 Calculate number of chapters using start-end range when doing updates. 2018-02-26 09:25:38 -06:00
Jim Miller
c492b73e99 Apply is_adult&user/pass dialogs to CALIBREONLY update. 2017-11-27 14:47:29 -06:00
Jim Miller
e453ade9cb Allow multiple range URLs (url[1-5]) for same story in one download. 2017-06-18 10:08:27 -05:00
Jim Miller
dddb771d79 Catch other common complete/in-progress statuses for calibre yes/no columns. 2017-05-15 19:32:47 -05:00
Jim Miller
ca5036792f Let PI search inside zip(html) and txt formats for story URLs. 2017-05-09 11:45:38 -05:00
Jim Miller
1d2a00feab Remove debug output of dependency versions. 2017-05-07 13:26:27 -05:00
Jim Miller
f4da821ab8 Fix error with std_cols_newonly if user has never saved config. 2017-05-05 18:53:06 -05:00
Jim Miller
118360102d Debug output of depend package versions. 2017-04-29 20:01:17 -05:00
Jim Miller
273ca6bcd7 Fix for PI suppressauthorsort/suppresstitlesort interacting wrong with Author/Title New Only. 2017-04-28 17:57:40 -05:00