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
plugins.twitch: block ads using the same method as uBlock #3170
Conversation
163ade7
to
119c9e8
Compare
Codecov Report
@@ Coverage Diff @@
## master #3170 +/- ##
==========================================
- Coverage 52.67% 52.66% -0.01%
==========================================
Files 244 244
Lines 15636 15637 +1
==========================================
- Hits 8236 8235 -1
- Misses 7400 7402 +2 |
We've already had the Even if this seems to be working right now, I doubt that it will keep working. If we decide to re-add this request parameter, then the only change should be the parameter itself (#2358), and the |
119c9e8
to
e5eb69e
Compare
It does seem like the parameter isn't a very consistent fix, sorry I didn't see that. I've changed it so the only changes are adding the parameter if the user asks for ads to be disabled. |
It really needs to be merged as soon as possible, otherwise the low latency streaming with no ads is unusable. |
The
Not true. The LL streaming still works fine when there are preroll ads. |
I saw another thread said that it was a player problem, but MPV didn't have this problem with streamlink, why? |
This is unrelated to this PR and shouldn't be discussed here. |
My apologizes, I was busy yesterday but I'm glad this got fixed. |
Implements uBlock's method of blocking ads on twitch. Which basically involves putting the
platform=_
parameter in theaccess_token
URLs. Doing that removes ad segments from the stream.I removed the tests related to removing ad segments since that isn't done anymore. I'm not sure how I'd test the new way of disabling ads so I didn't add any tests.
Also closes #3120 as passthrough should now be compatible with disabling ads.