Commit Graph

86 Commits

Author SHA1 Message Date
vvzvlad 521c3dc394 implement forceful termination in api_server and TelegramClient: add force_exit function for immediate process shutdown, update SIGTERM handler for forceful exit, and adjust restart logic in connection_handler to use SIGKILL 2025-06-10 14:28:51 +03:00
vvzvlad d6c3725b02 implement graceful shutdown in api_server: add SIGTERM handler for proper termination and enhance error handling for server startup issues 2025-06-10 14:06:56 +03:00
vvzvlad 0999e86f2b add timing logs for RSS and HTML generation in api_server and rss_generator 2025-04-27 18:40:31 +04:00
vvzvlad f499dc56a7 refactor api_server: comment out redundant log for cached media files 2025-04-27 18:22:31 +04:00
vvzvlad 422a3925ff fix bug 2025-04-25 16:59:21 +04:00
vvzvlad 386e7e8ce4 improve logging 2025-04-18 23:33:47 +03:00
vvzvlad fe1fee242d fix local req logic 2025-04-18 21:15:35 +03:00
vvzvlad 8c0a88cb84 small fix 2025-04-18 21:10:59 +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 cb419c97af update pylint and pylance disable comments 2025-04-18 18:00:02 +03:00
vvzvlad d520e8c2e8 Update get_raw_post_json 2025-04-13 03:38:00 +03:00
vvzvlad 96419265a3 Update get_raw_post_json to using json.dumps 2025-04-13 03:31:01 +03:00
vvzvlad ff97d1190b Refactor get_raw_post_json 2025-04-13 03:25:28 +03:00
vvzvlad 0b75b5a9b9 Add endpoint to retrieve raw JSON post data 2025-04-13 03:19:10 +03:00
vvzvlad e76fb8606d Remove unnecessary pass statement in ZeroSizeFileError exception class 2025-04-11 18:13:57 +03:00
vvzvlad 55d2b7331a fix linter err 2025-04-11 18:12:56 +03:00
vvzvlad d21a68471d Refactor zero-size file handling 2025-04-11 18:10:21 +03:00
vvzvlad fb73f6b868 fix zero size bug 2025-04-11 18:00:30 +03:00
vvzvlad f42e159ba6 Add flags endpoint 2025-04-11 02:04:58 +03:00
vvzvlad 997b49b4df removal of invalid entries from media_file_ids.json 2025-04-04 22:21:22 +03:00
vvzvlad 129b07abda add logging 2025-04-04 22:09:52 +03:00
vvzvlad de5c3f1fa1 fix bug Invalid digest : None, expected: None 2025-04-04 22:07:47 +03:00
vvzvlad 422e2adc2d Add shebang and encoding declaration to multiple Python files 2025-04-03 01:48:34 +03:00
vvzvlad a45678a852 Add JSON repair functionality 2025-03-26 15:04:24 +03:00
vvzvlad 750c01776a Update API endpoints to include request parameter for token validation, enhancing security by checking client host against allowed addresses. 2025-03-26 15:00:28 +03:00
vvzvlad bbaf2314d5 Remove base64 and URL decoding 2025-03-22 15:26:55 +03:00
vvzvlad 5f5128fed0 Decode base64 parameters if they are encoded 2025-03-22 15:03:53 +03:00
vvzvlad 710ad700e0 URL decoding for exclude_text 2025-03-22 15:01:02 +03:00
vvzvlad d6df00ff8c Refactor RequestLoggingMiddleware to ensure proper logging of request and response details, including error handling during request processing 2025-03-22 14:54:05 +03:00
vvzvlad f5f80487ce Add RequestLoggingMiddleware to log request and response details in API server 2025-03-22 14:50:59 +03:00
vvzvlad c8ad7f3e58 Remove commented-out logging for valid token in get_rss_feed function to improve code clarity 2025-03-22 14:41:10 +03:00
vvzvlad 8723540389 Refactor flood wait handling to return 429 status with Retry-After header instead of sleeping, 2025-03-22 14:28:12 +03:00
vvzvlad e5ed6151e0 Enhance post retrieval functions to include optional debug parameter for logging raw messages; update README.md with usage example for debug mode. 2025-03-21 14:46:57 +03:00
vvzvlad 583a4c4b3c Add uvloop support for asyncio in api_server and telegram_client; update requirements.txt 2025-03-21 14:29:57 +03:00
vvzvlad 716fa7ee42 Add text exclusion filter 2025-03-04 03:15:26 +10:00
vvzvlad c4aed732af Refactor sensitive data masking and configuration logging 2025-02-10 05:33:32 +03:00
vvzvlad 29ff31d136 Enhance health check endpoint with masked configuration details 2025-02-09 22:06:00 +03:00
vvzvlad c9c1bacc49 Add server configuration logging with sensitive data masking 2025-02-09 22:04:18 +03:00
vvzvlad 67d52b507a Add time-based media group merging for RSS and HTML generation 2025-02-09 21:44:55 +03:00
vvzvlad 7c9fd859d7 Refactor PostParser: Improve code style and method visibility 2025-02-09 06:04:01 +03:00
vvzvlad 344052e00e EPIC: Add content filtering via message flags 2025-02-09 03:53:52 +03:00
vvzvlad 9207056df8 Improve temporary file cleanup by removing associated media file entries 2025-02-07 22:51:42 +03:00
vvzvlad 77cc68e4e1 Add temp file skip mechanism for large video downloads 2025-02-07 03:17:53 +03:00
vvzvlad 3fa6d745d6 Increase default RSS feed retrieval limit to 50 items 2025-02-07 02:11:03 +03:00
vvzvlad 8a966fa262 Optimize cache statistics calculation by removing temporary file filtering 2025-02-07 01:55:02 +03:00
vvzvlad cd277e0937 Enhance media URL signature verification with configurable signing key 2025-02-07 01:45:39 +03:00
vvzvlad 20e975fce8 Improve media request error logging and channel ID handling 2025-02-07 01:40:12 +03:00
vvzvlad c680bf2493 Enhance media file caching and HTML sanitization with more granular controls 2025-02-07 01:30:02 +03:00
vvzvlad d335f585ce [BREAKING CHANGES] Refactor media file caching with nested directory structure and improved metadata tracking 2025-02-07 01:22:06 +03:00