Merged
- Create `streamlink.session` sub-package and move `session` module - Update/fix logger name - Create `tests.session` sub-package and move `test_session` module - Fix monkeypatch paths - Run session tests with a higher priority
This should've been removed with 8034b16
- Move `StreamlinkOptions` from `streamlink.session` to `streamlink.session.options` - Move docstring containing options list from `Streamlink.set_option()` to `StreamlinkOptions` and add this class to the docs - Move default options from `Streamlink` constructor to `StreamlinkOptions._DEFAULTS`, so all options data is defined in the `streamlink.session.options` module - Move session options tests to `tests.session.test_options` and change order of tests
bastimeyer
changed the title
session: turn session module into a sub-package
session: re-organize session and http_session modules
- Move `streamlink.plugin.api.http_session` module to `streamlink.session.http` - Deprecate old (and unnecessary) `HTTPSession` export in `streamlink.plugin.api` - Fix custom `HTTPAdapter` imports in plugins - Fix imports and fix monkeypatch paths in tests In the next commit: Restore the `streamlink.plugin.api.http_session` module and re-export `HTTPSession` and the `HTTPAdapter` classes with deprecation warnings.
This was referenced
Feb 4, 2024Merged
Merged
Merged