Skip to content

docs: add support for $metadata plugin metadata #5517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 26, 2023

Conversation

bastimeyer
Copy link
Member

This allows plugins to optionally define which stream metadata variables
are available, with an optional comment for each variable.

$metadata can be repeated multiple times, once for each supported
variable, and it must be set immediately after the mandatory $type.

The supported variables must be defined in the following order:

  • id
  • author
  • category
  • title

The optional comment is separated by a simple space character, but it
is rendered differently in the docs.


Resolves #5516

The plugin metadata changes are all based on this simple regex self\.(id|author|category|title), so this data might be wrong and/or incomplete, and optional comments are missing too.

The rendering of the plugins page could be improved later on. I couldn't figure out how to style :refs: in rst and my MyST-parser custom syntax attempts failed.

@bastimeyer
Copy link
Member Author

This allows plugins to optionally define which stream metadata variables
are available, with an optional comment for each variable.

`$metadata` can be repeated multiple times, once for each supported
variable, and it must be set immediately after the mandatory `$type`.

The supported variables must be defined in the following order:
- id
- author
- category
- title

The optional comment is separated by a simple space character, but it
is rendered differently in the docs.
@bastimeyer bastimeyer force-pushed the docs/plugins-metadata branch from 6cd334c to 36c305f Compare August 25, 2023 22:28
Copy link
Member

@gravyboat gravyboat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea to add this!

@bastimeyer bastimeyer merged commit 121ce97 into streamlink:master Aug 26, 2023
@bastimeyer bastimeyer deleted the docs/plugins-metadata branch August 26, 2023 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: add plugin documentation for the availability of stream metadata variables
2 participants