Enhancements
wsrv.nl
via relay: Try to usewsrv.nl
(environment variableIMAGES_WESERV_NL
) via the media relay server (environment variableIMG_RELAY_SERVER
). This is a workaround for images from domains/TLDs banned bywsrv.nl
or CDNs that banwsrv.nl
. It can hopefully reduce the frequency of seeing "invalid media" in messages since RSStT useswsrv.nl
heavily to convert images into formats accepted by Telegram DCs. See also #369.- Append enclosures to Telegraph post: Append enclosures (if any) to Telegraph post if any. Previously, enclosures can only be sent in Telegram messages, but not in Telegraph posts.
- Dependencies update: Bumped most outdated dependencies to the latest version. An optional dependency
isal
has been added to slightly improve the performance of entry hashing. - L10n update: Localizations have been updated.
- Misc refactoring: Some code has been refactored to improve readability and maintainability.
Bug fixes
- "Remote"
/test
unavailable: Fix a bug preventing the bot manager from using the/test
command "remotely". - Resized images still too big: Fix a bug causing images resized by
wsrv.nl
to be sometimes too big (exceed the 5MiB limitation of Telegram DC) to send. - Sinaimg images not parsed properly: Fix the URL regex of Sinaimg images. It can hopefully reduce the frequency of seeing "invalid media" in messages.
- WEBP fully fetched regardless of fetch limit: Fix a bug causing WEBP without
Content-Length
header to be fully fetched regardless of the fetch limit. - Entry hashing for monitor and sub not unified: Unify the entry hashing for monitor and sub. Previously, the entry hashing for monitor and sub is not unified, which may cause the bot to send persisting entries (posts) after a feed is subscribed for the first time.
v2.4.1: 次要的增强和 bug 修复,以及新年快乐!🎉
增强
- 经反代的
wsrv.nl
: 尝试通过媒体反代服务器 (环境变量IMG_RELAY_SERVER
) 使用wsrv.nl
(环境变量IMAGES_WESERV_NL
)。这是对那些来自被wsrv.nl
封禁的域名或将wsrv.nl
封禁的 CDN 的图片的变通解决方案。考虑到 RSStT 大量使用wsrv.nl
将图片转换为 Telegram DC 所接受的格式,这有望减少在消息中见到 "Invalid media" 的频率。另请参阅 #369。 - 将 enclosure 附加到 Telegraph 文章: 如果有的话,将 enclosure (附件) 附加到 Telegraph 文章。先前,enclosure 只能在 Telegram 消息中发送,而无法在 Telegraph 文章中发送。
- 依赖项更新: 将大部分过时的依赖项更新到了最新版本。引入可一个可选依赖
isal
用于稍微提升条目散列的性能。 - 本地化更新: 本地化已被更新。
- 杂项重构: 重构了一些代码以提高可读性和可维护性。
Bug 修复
- “远程”
/test
不可用:修复阻止 bot 管理员“远程”使用/test
命令的错误。 - 调节尺寸后的图像仍然太大: 修复了一个错误,这个错误导致经过
wsrv.nl
调节尺寸后的图像有时候仍然太大(超过 Telegram DC 的 5MiB 限制)以至于无法发送。 - Sinaimg 图片未被正确解析: 修复了针对 Sinaimg (微博图床) 图片的正则表达式。这有望减少在消息中见到 "Invalid media" 的频率。
- WEBP 被完全获取,而没有考虑获取限制: 修复了一个导致不带有
Content-Length
标头的 WEBP 被完全获取,而没有考虑获取限制的错误。 - 监视器和订阅的条目散列不统一: 统一监视器和订阅的条目散列。先前,监视器和订阅的条目散列不统一,这可能导致 bot 在一个 RSS 源被首次订阅后发送已经存在的条目 (文章)。