Skip to content

Metadata Variables for output/record #5187

Answered by bastimeyer
Veatra asked this question in Q&A
Discussion options

You must be logged in to vote

get streamlink to output the content of {category} etc. directly?

https://streamlink.github.io/cli.html#cmdoption-json
https://stedolan.github.io/jq/

streamlink --json "$STREAMURL" "$QUALITY" | jq -r .metadata.category

Is it possible to get the original upload date of a vod instead of the time of starting the vod download?

There is no such metadata for that. This also wildly depends on the streaming site you're trying to access.

If you're talking about Twitch for example, then just use their public helix API or their private gql API yourself, which you should be doing for reading any kind of metadata anyway when doing additional scripting, as Streamlink isn't really meant for this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bastimeyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants