This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are several new issues about failing to start a stream where some of them the issue was not having an active F1TV subscription. #333 and #363
In order to add to the user-experience I have made a simple validation and errormessage for this case.
Functionality changes:
When users try to watch content without a valid F1TV subscription an user-friendly error will be shown along with the minimum subscription level needed for that content (Access/Pro).
Code Changes:
Sadly we do not know the type of subscription the user has since F1TV does not return that upon authorizing.(Maybe there is a different way, but didnt check as I went for a simple validation)