bastimeyer · GitHub

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

@bastimeyer bastimeyer changed the title session: turn session module into a sub-package session: re-organize session and http_session modules

Feb 2, 2024

@bastimeyer

- 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.

@bastimeyer

@bastimeyer

@bastimeyer

This was referenced

Feb 4, 2024

Merged

Merged

@W4RdZ W4RdZ mentioned this pull request

May 9, 2024

Closed

4 tasks

Merged

Read the original on github.com ↗