1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-22 22:21:31 +02:00
Commit Graph

52 Commits

Author SHA1 Message Date
gryf ef02332465 Fix couple of logging errors 2022-12-04 18:22:06 +01:00
gryf 3f57198f91 Changing logging module location. 2021-06-28 22:02:41 +02:00
gryf 230fe90e69 Another part of logging adaptation 2021-06-24 19:58:56 +02:00
gryf 6dfcaea2dd Next portion of logging adapt. 2021-06-24 19:58:56 +02:00
gryf 84abd62a61 Re added (probably) right formating codes. 2021-06-22 22:06:09 +02:00
gryf 546cc26652 Added first portion of logging adaptation.
Things may be broken at this point - there are still several modules to
be adapted.
2021-06-22 22:04:45 +02:00
gryf f47376830f Moved misc functions from polyglot package to single polyglot module. 2021-05-25 19:15:13 +02:00
gryf 6d08cf7da2 Revisited jacket functions. 2021-03-27 16:35:40 +01:00
gryf b2f161670a Cleaned up __init__.py for main module 2021-01-05 19:48:45 +01:00
gryf 018676c026 Moved prepare_string_for_xml to utils.entities. 2021-01-03 19:47:49 +01:00
gryf 877ea68d42 Moved xml_entity_to_unicode partial to utils.entities module. 2021-01-03 19:00:17 +01:00
gryf 839cc3c79a Moved entity_to_unicode function to utils.entities module. 2021-01-03 18:52:13 +01:00
gryf 22fed6f4d3 Removed facade on os.walk. 2020-10-13 21:27:32 +02:00
gryf 847e133878 Initialize mime in cli module 2020-09-30 20:46:01 +02:00
gryf 45b6bb5b2c Cleanup, cleanup 2020-07-17 18:59:45 +02:00
gryf 4216fef20e Removed prints and extract function from init module 2020-07-13 21:38:06 +02:00
gryf c82c4e456c Removed urlunquote 2020-07-11 16:24:16 +02:00
gryf 111854f686 Cleaned up cover module 2020-07-05 16:37:03 +02:00
gryf 8bb1168969 Fix for nested cointent.opf file for epub. 2020-07-05 13:15:58 +02:00
gryf 976ef5ce36 Get rid of polyglot as_unicode 2020-06-17 17:51:37 +02:00
gryf 1c04e7a4c7 More cleanups. Removing version function. 2020-06-15 22:22:55 +02:00
gryf 3f8844832d Move strftime to util.date module
In this patch strftime function is moved out of main __init__.py module
to util.date, where it belongs.
2020-06-14 20:47:01 +02:00
gryf fdd531f6e0 Removed as_unicode function 2020-06-14 19:02:23 +02:00
gryf bed16d24f1 Flaked8 cli module 2020-06-14 16:22:53 +02:00
gryf 372899739d Removed patheq function 2020-06-14 16:09:08 +02:00
gryf 9891d02694 Fixed flake8 issues to several modules 2020-06-14 15:49:11 +02:00
gryf 1465e4267f Sorted out mime initialization.
Every mime related function in main __init__.py has a flag check for the
check if initialization has already done. This is nonsense, since it
should be done implicitly early on the converter is starting.

This commit straight the things out, and initialization is done in cli
module.

Also, function guess_type was removed, since it's just a proxy for
mimetypes.guess_type function.
2020-06-14 15:41:18 +02:00
gryf ebb2e810eb Removed 'browser' related functions 2020-06-14 12:28:23 +02:00
gryf be671ef2d8 Removed isbytestring function 2020-06-14 12:10:40 +02:00
gryf ce89f5c9d1 Use the real constants module.
This is progressing refactor of the calibre code to make it more
readable, and transform it to something more coherent.

In this patch, there are changes regarding imports for some modules,
instead of polluting namespace of each module with some other modules
symbols, which often were imported from other modules. Yuck.
2020-05-29 17:04:53 +02:00
gryf 2c78d6e3a6 Renamed constants, to make room for real constants module 2020-05-26 19:52:18 +02:00
gryf 17c52a14a4 Some misc cleanups 2020-05-24 12:10:13 +02:00
gryf 2d26e8916d Clean up pdb_input module 2020-05-17 20:40:46 +02:00
gryf 212cb56d42 Removed gettext related functions 2020-05-03 19:04:07 +02:00
gryf 35445cb736 More cleanup 2020-05-03 15:37:23 +02:00
gryf ea99f5223c Removing not needed excpetion class ConversionUserFeedBack 2020-04-23 20:11:10 +02:00
gryf 16d169d0d6 Removed another unicode/string nonsense 2020-04-23 20:07:19 +02:00
gryf 3234e4de27 Removed iteritems and itervalues, which are redundant 2020-04-21 18:20:08 +02:00
gryf 9e076e0af4 Removed superfluous lopen builtin 2020-04-20 21:12:22 +02:00
gryf 3ca3f08054 Removing polyglot getcwd and getenv 2020-04-20 20:34:17 +02:00
gryf c867f0321b Removing couple of "buildins" polyglot types 2020-04-20 20:22:50 +02:00
gryf 128705f258 Removed polyglots unicode_type usage 2020-04-20 19:25:28 +02:00
gryf ef7e2b10be Removing is_py3 method and duplicated by urllib. 2020-04-19 21:22:24 +02:00
gryf b66cbd2c1e Removed overwritten builtins from mosto of the files.
Just started the process of cleaning up the code base.
2020-04-19 19:06:09 +02:00
gryf 571da747b3 Fix license formatting 2020-04-19 17:50:19 +02:00
gryf 48fedea799 Removing unneeded from __future__ import statements.
Since we are on Python 3.6 and up, we don't need those anymore.
2020-04-19 17:39:02 +02:00
gryf d2159ed60c Added htmlz and pdf formats.
Added HTML reader/writer and PDF reader.
2020-04-19 15:16:48 +02:00
gryf fa3cf5c178 Added FB2 format. 2020-04-19 15:16:48 +02:00
gryf 5aa0b1a0eb Cleanup get_path usage in favor of pkg_resources. 2020-04-19 15:16:48 +02:00
gryf bd9cb86c1c Replace Calibre path resolve system for some of the modules.
In Calibre there is a module, which registers two functions in global
scope, one for filepath and one for images path. It relies on additional
three variables, registered during application startup. I found it
overcomplicated, and couple of the resource paths has been calculated
using pkg_resource module.
2020-04-19 15:16:48 +02:00