Commit Graph

12 Commits

Author SHA1 Message Date
bastimeyer c2f0626100 session: move plugin load/resolve logic
- Move plugin load/resolve logic into the `streamlink.session.plugins`
  module with the `StreamlinkPlugins` class
- Make `Streamlink.plugins` an instance of this class
- Add the `plugins_builtin` keyword argument to the `Streamlink` class
  and set its default value to `True`
- Deprecate the `Streamlink.{{get,load}_plugins,load_builtin_plugins}()`
  methods, which are now wrappers for the respective `StreamlinkPlugins`
  implementations
- Update `streamlink_cli.main` and all other `Streamlink` session
  usages accordingly (in scripts and tests)
- Update session docs
- Move and update plugin load/resolve tests
2024-02-08 09:28:22 +01:00
bastimeyer b82adee59a session: move StreamlinkOptions
- 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
2024-02-03 01:20:40 +01:00
bastimeyer e24374b07b plugin: add str to pluginargument type argument
- Make built-in plugins use pluginargument type functions referenced
  via name, so the pluginargument data can be fully JSON-serialized
- Add the `type_args`/`type_kwargs` arguments to `@pluginargument()`
  which allow the parametrization of the name-referenced type function
- Add a pluginargument type registry to the `streamlink.plugin.plugin`
  module and add all functions of the `streamlink.utils.args` module,
  as well as the `hours_minutes_seconds{,_float}` functions of
  the `streamlink.utils.times` module
- Update docs
- Add tests
2024-01-16 14:50:51 +01:00
bastimeyer e88a84e2a1 docs: add cache API docs and add Plugin.cache ref 2023-11-27 00:06:20 +01:00
bastimeyer 003debed0c docs: add plugin.api.validate API guide 2023-11-08 15:37:09 +01:00
bastimeyer 7f4c86cfe9 plugin.api.validate: fix order of module members 2023-11-06 19:22:20 +01:00
bastimeyer d3ae06f91a docs: add plugin.api.validate API documentation 2023-11-06 19:22:20 +01:00
bastimeyer d1759665be docs: add docs page for Options class
- Add `api/options` page and document `Options` class
- Move `Argument` and `Arguments` from plugin page to options page
- Add docstrings for `Streamlink.options` and `Plugin.options`
2023-07-18 20:33:18 +02:00
bastimeyer 0c73b1c883 docs: fix header and sections in api/stream 2023-07-09 11:54:24 +01:00
bastimeyer 48cb934048 webbrowser.cdp: add CDP connection docs 2023-07-04 21:07:59 +02:00
bastimeyer 60459461fd webbrowser.cdp: implement CDP client 2023-07-04 10:59:46 +02:00
bastimeyer fa8139d147 docs: split API docs into multiple documents 2023-06-24 13:38:25 +02:00