Skip to content
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

Add workaround for storyboards on local instances #4040

Merged
merged 3 commits into from
Aug 26, 2023

Conversation

syeopite
Copy link
Member

@syeopite syeopite commented Aug 8, 2023

Closes #3117

Also fixes a regression from #4037 that broke storyboards for everyone.


workaround

This PR adds a quick workaround within the 404 handler to allow storyboards to function on instances without domain, external_port and https_only set.

We should probably consider switching to the freetube fork here

An upstream problem with videojs-vtt-thumbnails means that URLs gets
joined incorrectly on any instance where `domain`, `external_port` and
`https_only` aren't set.

This commit adds some logic with the 404 handler to mitigate this
problem. This is however only a workaround.

See:
iv-org#3117
chrisboustead/videojs-vtt-thumbnails#31
PR iv-org#4037 introduced a workaround around YouTube's new integrity checks
on streaming URLs. However, the usage of this workaround prevents
storyboard data from being returned by InnerTube.

This commit fixes that by only using the workaround when calling try_fetch_streaming_data
@syeopite syeopite requested a review from a team as a code owner August 8, 2023 22:40
@syeopite syeopite requested review from unixfox and removed request for a team August 8, 2023 22:40
@SamantazFox SamantazFox added the need-testing This feature needs to be deployed and tested to see if it's working, and doesn't break something label Aug 21, 2023
@Fijxu
Copy link
Contributor

Fijxu commented Aug 23, 2023

Tested it, works good. If I comment/unset the 3 settings that @syeopite mentions, storyboards appear without problems when connecting locally to the instance and via the HTTPS domain. However if I set the 3 settings mentioned, storyboards no longer work when connecting locally but they work if I connect via the HTTPS domain. I guess this is the intended purpose of this pull request

image

@syeopite syeopite added ready and removed need-testing This feature needs to be deployed and tested to see if it's working, and doesn't break something ready labels Aug 23, 2023
@SamantazFox SamantazFox merged commit ac0c060 into iv-org:master Aug 26, 2023
@SamantazFox
Copy link
Member

@syeopite Thanks for the PR :)

@syeopite syeopite deleted the storyboard-workaround branch August 26, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Player uses /api/v1 for storyboards
3 participants