vvzvlad
a38a729137
perf(api): add timing diagnostics for media ops
...
Add monotonic timing instrumentation around media download, semaphore
wait, HTML sanitization, and media file persistence. Log warnings when
operations exceed defined thresholds and provide diagnostic info for
task queue size. This aids performance monitoring without altering
behaviour.
2026-03-16 01:14:24 +03:00
vvzvlad
5257c50243
fix(post_parser): correct content order when caption display flag is toggled
...
The changes ensure that when `show_caption_above` is true, text content is rendered before media, and when false, media is rendered before text. This aligns the actual rendering order with the semantic meaning of the flag, fixing a bug where content ordering did not match user expectations.
2026-01-02 05:38:30 +03:00
vvzvlad
76e163098b
feat(post_parser): support show caption above media attribute for message rendering
...
Add support for Telegram's show_caption_above_media message attribute to conditionally order caption and media content in HTML output. When enabled, media is rendered before the text caption instead of the default text-before-media order.
2026-01-02 05:27:18 +03:00
vvzvlad
5543c0514a
feat(post_parser): allow strikethrough tags in HTML sanitization
...
Add 's' and 'del' tags to the allowed HTML tags list in the sanitization
method to support strikethrough and deleted text formatting.
2026-01-02 02:33:37 +03:00
vvzvlad
68a2dbfa04
refactor api_server and post_parser: implement asynchronous JSON file operations with locking mechanism to ensure thread safety, and streamline media file ID persistence logic
2025-09-13 20:47:16 +03:00
vvzvlad
45e9ac7a1e
refactor post_parser: add line breaks for improved readability in post content
2025-04-27 13:06:39 +04:00
vvzvlad
e0bb640a73
refactor post_parser: enhance post text and poll formatting, improve HTML structure
2025-04-26 13:15:03 +04:00
vvzvlad
508be049d9
refactor post_parser: streamline content body construction for improved readability
2025-04-26 12:55:38 +04:00
vvzvlad
36236d4407
refactor post_parser: clean up whitespace and improve PDF placeholder handling
2025-04-26 12:52:18 +04:00
vvzvlad
1bd36b32d8
refactor post_parser: wrap media content in a div for better HTML structure
2025-04-26 12:51:37 +04:00
vvzvlad
c340d22fc4
improve error logging
2025-04-26 12:46:22 +04:00
vvzvlad
721302d2e6
oops
2025-04-26 12:42:27 +04:00
vvzvlad
b9d5e839df
refactor post_parser and rss_generator:move media in body render
2025-04-26 12:38:52 +04:00
vvzvlad
db0d1a6dc2
refactor _generate_html_body to streamline reply info handling and improve logging
2025-04-20 19:07:30 +03:00
vvzvlad
80d6cc5d5a
add line break in debug HTML
2025-04-19 04:33:47 +03:00
vvzvlad
65a69ed37a
refactoring
2025-04-19 04:32:44 +03:00
vvzvlad
4e1987983f
refactoring
2025-04-19 04:11:02 +03:00
vvzvlad
2f7f524e83
remove unnecessary line breaks in forwarded message HTML output
2025-04-19 04:03:14 +03:00
vvzvlad
c2bbf72b07
refactor _format_forward_info to handle multiple forward cases and improve logging
2025-04-19 04:01:52 +03:00
vvzvlad
5d4951aecd
update comment in post_parser.py to clarify main cut logic
2025-04-19 03:55:03 +03:00
vvzvlad
1e283c4249
fix bug
2025-04-19 03:50:33 +03:00
vvzvlad
97ad18e9d4
remove unused
2025-04-19 00:01:21 +03:00
vvzvlad
26744e3699
refactoring
2025-04-18 23:02:29 +03:00
vvzvlad
d2870bc0f6
add youtube title
2025-04-18 22:58:25 +03:00
vvzvlad
d0584d4525
more logging
2025-04-18 21:52:17 +03:00
vvzvlad
ba20f2ee02
add logs
2025-04-18 21:43:56 +03:00
vvzvlad
87822c0d51
add message id debug
2025-04-18 21:34:41 +03:00
vvzvlad
045360d497
debug print
2025-04-18 21:28:15 +03:00
vvzvlad
5aa5783672
format fix
2025-04-18 21:25:45 +03:00
vvzvlad
1760ec3485
add types-2
2025-04-18 20:39:57 +03:00
vvzvlad
6aba094a6c
add types support
2025-04-18 19:42:54 +03:00
vvzvlad
ec2f439e56
format
2025-04-18 18:02:31 +03:00
vvzvlad
cb419c97af
update pylint and pylance disable comments
2025-04-18 18:00:02 +03:00
vvzvlad
6dcec780ac
improve error logging
2025-04-18 17:27:55 +03:00
vvzvlad
34701a4c50
refactor PostParser
2025-04-18 17:05:51 +03:00
vvzvlad
fb95636da5
add detailed error logging for reactions views parsing in PostParser
2025-04-18 16:58:15 +03:00
vvzvlad
46aadb93d9
revert commit
2025-04-18 05:41:31 +03:00
vvzvlad
70c8e7aaf0
enhance forward info
2025-04-18 05:33:13 +03:00
vvzvlad
64a505cc71
change log level
2025-04-18 05:26:31 +03:00
vvzvlad
c31eddf211
refactor forward info handling in PostParser to streamline title generation and improve debug logging
2025-04-18 05:23:53 +03:00
vvzvlad
5549890e6a
fix bug
2025-04-18 05:10:59 +03:00
vvzvlad
65d5952241
add audio flag to PostParser for messages with AUDIO or VOICE media
2025-04-18 05:08:28 +03:00
vvzvlad
c9d5f6b2f6
refactor PostParser and RSS generator to remove header generation and adjust body rendering
2025-04-18 05:06:26 +03:00
vvzvlad
bbeab1fb33
fix channel_username retrieval to use sender_chat instead of chat in PostParser
2025-04-18 05:02:25 +03:00
vvzvlad
1c77552ca9
enhance forward title display in message content with clearer formatting
2025-04-18 04:54:06 +03:00
vvzvlad
63a8e32e25
simplify forward title handling in message content
2025-04-18 04:50:12 +03:00
vvzvlad
f165a81440
refactor forward title assignment to handle missing sender_chat
2025-04-18 04:46:43 +03:00
vvzvlad
0534b65eb3
update forward title handling
2025-04-18 04:43:56 +03:00
vvzvlad
1840a47772
adding forward title in post content
2025-04-18 04:41:12 +03:00
vvzvlad
468986329d
refactoring
2025-04-18 03:55:49 +03:00