Instead of embed or text mode, optionally send a full-page screenshot of the entry URL as a Discord file upload
All checks were successful
Test and build Docker image / docker (push) Successful in 1m26s
All checks were successful
Test and build Docker image / docker (push) Successful in 1m26s
This commit is contained in:
parent
c55610affa
commit
9ec0166e7f
14 changed files with 1571 additions and 241 deletions
|
|
@ -51,4 +51,12 @@ def get_reader(custom_location: Path | None = None) -> Reader:
|
|||
# Set default
|
||||
reader.set_tag((), ".reader.update", {"interval": 15})
|
||||
|
||||
# Set the default screenshot layout to desktop if not already configured.
|
||||
if reader.get_tag((), "screenshot_layout", None) is None:
|
||||
reader.set_tag((), "screenshot_layout", "desktop") # pyright: ignore[reportArgumentType]
|
||||
|
||||
# Set the default delivery mode for new feeds to embed if not already configured.
|
||||
if reader.get_tag((), "delivery_mode", None) is None:
|
||||
reader.set_tag((), "delivery_mode", "embed") # pyright: ignore[reportArgumentType]
|
||||
|
||||
return reader
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue