-
Notifications
You must be signed in to change notification settings - Fork 887
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
Show message when the live chat is unavailable #3327
Show message when the live chat is unavailable #3327
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second thought, could u maybe make the message box smaller? I think it would be nice for the user to see the Up Next section instead of having to scroll down for it
@PikachuEXE Search in the live stream playlists for news outlets. They almost always disable the chat |
Update 1: PR created - #3337 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested local API, the Invidious API with backend fallback enabled and the Invidious API with backend fallback disabled
83417ab
If there is an error it will now shrink, so that it doesn't take up an unnecessary amount of space. |
How to test "message box smaller on error"? |
@PikachuEXE before the message box was the same size as an active life chat but know it is way smaller if it is disabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show message when the live chat is unavailable
Pull Request Type
Related issue
closes #3309
Description
Currently if an uploader has disabled the live chat for a live stream or if it is unavailable for some other reason, FreeTube spits out an error. This pull request detects if the live chat is missing and shows a message to the user instead of spitting out an error.
Screenshots
Testing
Find a live stream on https://youtube.com/live that has the live chat disabled. (I'm not going to link specific ones, as the ones I found while reproducing the issue, will have probably ended by the time you test this pull request).
Please test with the local API, the Invidious API with backend fallback enabled and the Invidious API with backend fallback disabled, as they all function slightly differently.
Desktop