Skip to content

Conversation

@bastimeyer
Copy link
Member

For some reason, YouTube always sets the playabilityStatus.status value to "OK" on broken live streams, even if
playabilityStatus.reason is set to a specific error message.

Valid live streams and videos have set the playabilityStatus.reason value to None, so just check whether the value is truthy.


Resolves #5350

I'd like to see a confirmation from someone else first that the assumption that playabilityStatus.reason is None on valid streams is actually correct. If it's not, then we unintentionally return no streams with these changes, which would be bad.

For some reason, YouTube always sets the `playabilityStatus.status`
value to `"OK"` on broken live streams, even if
`playabilityStatus.reason` is set to a specific error message.

Valid live streams and videos have set the `playabilityStatus.reason`
value to `None`, so just check whether the value is truthy.
@bastimeyer bastimeyer added the plugin issue A Plugin does not work correctly label May 19, 2023
@bastimeyer bastimeyer merged commit 62318e5 into streamlink:master May 21, 2023
@bastimeyer bastimeyer deleted the plugins/youtube/check-playability-reason branch May 21, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin issue A Plugin does not work correctly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plugins.youtube: Checking if stream on pause or no video is playing while youtube shows it as live

1 participant