2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/plugins/newsdownloader.koplugin
NiLuJe 2f9db25969
Unify LuaSocket usage (#7405)
* Add a new socketutil module with a few helper functions that allow us to:
  * Always use a sane User-Agent (previously, only Wikipedia did so)
  * Set timeouts in an almost sane manner. Doing it explicitly prevents an interaction with KOSync that does crazy stuff I don't even want to try to understand.
* Unified said timeouts based on the request's intended usage (except for Wikipedia, which already had meaningful timeout values).
* Stopped using LuaSec directly, LuaSocket defers to LuaSec sanely on its own. Everything now transparently supports HTTPS without code duplication.
2021-03-15 01:25:10 +01:00
..
lib NewsDownloader: add date time to filename (#3863) 2018-04-12 16:05:50 +02:00
_meta.lua [Fix] Don't load disabled plugins (#4169) 2018-08-18 20:41:37 +02:00
epubdownloadbackend.lua Unify LuaSocket usage (#7405) 2021-03-15 01:25:10 +01:00
feed_config.lua [NewsDownloader] Added an HTML filter through a CSS selector (#6228) 2020-06-04 22:58:14 +02:00
internaldownloadbackend.lua Unify LuaSocket usage (#7405) 2021-03-15 01:25:10 +01:00
luahttpdownloadbackend.lua NewsDownloader externalize download engine (#3618) 2018-01-31 12:39:04 +01:00
main.lua LuaSettings: Add a method to initialize a setting properly (#7371) 2021-03-06 22:44:18 +01:00