1
0
Fork 0
mirror of https://github.com/kemayo/leech synced 2025-12-06 08:22:56 +01:00
Commit graph

369 commits

Author SHA1 Message Date
David Lynch
3fdbae5851 Pass through some more headers in the session 2024-12-17 16:34:57 -06:00
David Lynch
204807add6 Don't hardcode a story ID into a path before it's needed 2024-12-04 17:20:11 -06:00
David Lynch
bb1fcc0e50 Always process images if they're included in the chapter object 2024-12-04 17:15:09 -06:00
David Lynch
5392593621 Image options in an options-object pattern, like cover options 2024-12-04 17:12:06 -06:00
David Lynch
bedaec9989 Avoid potential image overlaps with nested sections 2024-12-04 16:51:21 -06:00
David Lynch
1fe907bec2 Pass image arguments to nested sections 2024-12-04 16:42:47 -06:00
David Lynch
acce8138a9 Also pass the base through to the super clean for royalroad 2024-12-02 11:01:34 -06:00
David Lynch
31154ed8d4 Fix a call to _clean for royalroad 2024-12-02 00:00:58 -06:00
David Lynch
e3c63bce3c New config option: allow_spaces
Determines whether spaces in filenames will be replaced with underscores
2024-11-30 14:07:40 -06:00
David Lynch
2f21280d76 Adjust option loading so it's easier to override 2024-11-30 14:07:40 -06:00
David Lynch
91d2c4fd4b Fully cancel if the story extraction fails 2024-11-30 13:52:43 -06:00
David Lynch
ffb8e54e91 Better error for an Arbitrary story that fetches no content 2024-11-23 23:07:16 -06:00
acestronautical
85da618cb2 Fix selectors for the Dungeon Keeper Ami example 2024-11-23 22:57:50 -06:00
David Lynch
7f91f1cc43 Some general readme updates 2024-11-23 22:44:34 -06:00
David Lynch
59923e0f63 Add note about alt="" behavior 2024-11-23 22:35:55 -06:00
David Lynch
6988fc8ccc Add output mentioning when an image is cached 2024-11-23 22:34:46 -06:00
David Lynch
d49d7891c3 Fix some images not having srcset and sizes removed 2024-11-23 22:34:46 -06:00
David Lynch
746ec1b994 Fix image enabling by default
Follow-up to 6ecb1d8942
2024-11-23 22:10:19 -06:00
David Lynch
bf248bbfc8 Remove unused register import in xenforo.py 2024-11-23 21:48:46 -06:00
David Lynch
ef43295c25 AlternateHistory is on XenForo2 now
...this was the last site I had in old XenForo, so I will probably want
to clean that up soon.
2024-11-23 21:41:36 -06:00
David Lynch
0cac7ff945 New spoilers behavior: --spoilers [include/inline/skip]
Fixes #75
2024-11-23 21:39:54 -06:00
David Lynch
3f6fd401ad Update the readme with the current python version requirement 2024-11-23 19:43:56 -06:00
David Lynch
a39e1e9f89 Use the newer syntax for attrs 2024-11-23 19:42:35 -06:00
David Lynch
d6d23e4c60 Bump dependency versions and required python version 2024-11-23 17:38:52 -06:00
David Lynch
4f15e0517f Change how the build a cover test runs 2024-11-23 16:59:25 -06:00
David Lynch
3fbe181b12 In no-images case, replace with alt if present rather than decomposing
Putting a placeholder there for the altless, to avoid confusion.
2024-11-23 16:48:09 -06:00
David Lynch
740a41f4ef Avoid refetching images that're repeated across chapters 2024-11-23 16:33:01 -06:00
David Lynch
6ecb1d8942 Make downloading images the default behavior 2024-11-23 16:33:01 -06:00
David Lynch
400c5cc801 Configurable whether to always convert images 2024-11-23 16:33:01 -06:00
David Lynch
b6310658e8 Command-line flag to enable/disable fetching images 2024-11-23 16:33:01 -06:00
David Lynch
e2bc6eba1c Change order of config loading so site-specific overrides of cover/image work 2024-11-23 16:33:01 -06:00
David Lynch
4856649424 Be less verbose when downloading images 2024-11-23 16:33:01 -06:00
David Lynch
9510a22cb0 Remove arbitrary's special-case image loading, since the default works 2024-11-23 16:33:01 -06:00
David Lynch
21834bb5ed _clean takes a base argument and reformats image srcs into absolute urls 2024-11-23 15:30:57 -06:00
David Lynch
a0a057c48c _soup always returns a base URL 2024-11-23 15:15:29 -06:00
David Lynch
9508b00bcb Rearrange the image options to match cover options 2024-11-23 14:54:12 -06:00
David Lynch
542774543a Code style fixups, duplication cleanup, PIL textsize removal 2024-11-23 14:22:10 -06:00
Emmanuel C. Jemeni
f557a48ac4 Update image.py
Fiction.Live seems to have changed how they host images
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
4e9ad1ed7e feat: Leech can now download images in xenforo spoilers. The --include-spoilers tag has to be added for Leech to download images in spoilers. 2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
34bf962df6 feat: Leech can now compress images to a specific target size 2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
55e400b535 fix: Fixes bad transparency mask error 2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
162cc620cc docs: minor sentence refactor 2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
e6ad77a9fc fix: Completely fixes #2 ! 2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
f6dc5a9ad9 Convert Filepicker.io image URLs to Fiction.live image URLs and warn of potential failure 2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
63ac765e41 fix(ebook/__init__.py): Leech will now ignore empty image tags (because apparently that's a thing).
feat(ebook/__init__.py): Leech print out more information about the images it is downloading. The number of images in each chapter and the image downloading currently.
2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
b1f1c01210 build(.gitignore): modified the .gitignore file so it ignores PyCharm's .idea folder 2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
dca26e95ea feat(ebook/__init__.py): leech checks if an image has an alt attribute and adds one if it doesn't 2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
f933020357 refactor(leech.py): minor spelling error fixed 2024-11-23 13:22:54 -06:00
Emmanuel Jemeni
71345b2658 fix(Partial-Fix-to-Issue-#2): Leech can now download images however there is no way of disabling this option and this was only tested with stories from fiction.live
BREAKING CHANGE:
2024-11-23 13:22:54 -06:00
Idan Dor
1edde92a9d Fixed whitespacing for flake8. 2024-11-23 13:22:53 -06:00