twitch.tv

Edit

New Member
What if we try a $replace rule for these?

https://usher.ttvnw.net/api/channel/hls/esl_csgo_pl.m3u8?token={"adblock%22%3Atrue%2C%22player_type%22%3A%22popout%22%2C%22platform%22%3A%22web%22%2C%22user_id%22%3Anull%2C%22channel%22%3A%22esl_csgo_pl%22%2C%22channel_id%22%3A23675021%2C%22expires%22%3A1504037801%2C%22chansub%22%3A%7B%22view_until%22%3A1924905600%2C%22restricted_bitrates%22%3A%5B%5D%7D%2C%22private%22%3A%7B%22allowed_to_view%22%3Atrue%7D%2C%22privileged%22%3Afalse%2C%22source_restricted%22%3Afalse%2C%22https_required%22%3Atrue%2C%22show_ads%22%3Atrue%2C%22device_id%22%3A%22DhgpJ5d02oxF1crQqwjwXc0c4lRSnfTv%22%2C%22turbo%22%3Afalse%2C%22subscriber%22%3Afalse%2C%22hide_ads%22%3Afalse%2C%22partner%22%3Atrue%2C%22game%22%3A%22counter_strike_global_offensive%22%2C%22mature%22%3Afalse%2C%22ci_gb%22%3Afalse%7D&sig=e17cac7c8b2dc90332a0ece64a3de4acbf99c4c7&allow_source=true&player_backend=html5&p=4318762&expgroup=&rtqos=control&baking_bread=true&baking_brownies=true&baking_brownies_timeout=1050
 

Edit

New Member
I'm not quite sure what you're missing.

More streams: https://player.twitch.tv/?channel=csprotv ; https://player.twitch.tv/?channel=dreamhackcs2

Click the stream and tell me if the stream starts with an Advertisement 30 seconds clip. The screenshot above with the word ADVERTISEMENT in the upper left corner, is how it should look like.

I checked the LOG, and the only thing I see (could be something else) is the long link above that could be potentially modified with a $replace rule of which I don't know the syntax.

Hit the Spoiler button in my signature to see what my specs are.

Simply try and reproduce the problem, reply back, and inform me of proper syntax for the long link I posted above. Thanks.
 

Edit

New Member
These details are in my signature once you click the button Spoiler. I'll modify my signature now to avoid confusion next time.
 

Edit

New Member
Can anyone point me in the right direction regarding the syntax when using a $replace rule for a .m3u8 link ?
 

Edit

New Member
More live streams: https://player.twitch.tv/?channel=fpsthailand

Can anyone offer a suggestion at least? Thanks in advance.

This is my suggestion:
Code:
||api.twitch.tv/api$replace=/"hide_ads\\\":false\,/"hide_ads\\\":true\,/i
Value is changed successfully but unfortunately it breaks the stream. This is the error shown: Content not available (see screenshot)
 

Attachments

Edit

New Member

Alex302

Filters Developer
Staff member
Administrator
I don't see ads even with hide_ads\\\":false
As I see in HAR, ad video has the same URL as the main video.
@Adam @seanl Could you check it on your side?
 

Edit

New Member
Yes, the ad video has the same URL as the main video. But there's some hope.

After some digging, I found out about this chrome app: https://chrome.google.com/webstore/detail/twitch-5/knankefoajngclnjgnelanfohgihifpc?hl=en

It's a twitch player able to strip everything irrelevant out from the streams (including pre-ads). I don't know how this is achieved so please mods, have a look and let me know if Adguard can replicate the same behaviour as this app. Thanks.
 

Edit

New Member
Of course not. But someone knowledgeable can check the code and figure out what to extract from it. There's a player.js that runs alongside the stream. A lot of it was written in Russian which shouldn't be a problem for you guys.

Why aren't any other mods replying to this thread? @Adam @seanl @avatar
 

Adam

Filters Developer
Staff member
Moderator
The problem is that I can't reproduce these ads, but basing on your har files, I noticed that these ads are probably between #EXT-X-DISCONTINUITY and #EXT-X-DISCONTINUITY in .m3u8 files.
http://regexr.com/3gn9e
Could you please check this rule:
Code:
||ttvnw.net/v*/playlist/*.m3u8$replace=/#EXT-X-DISCONTINUITY[\s\S]*?#EXT-X-DISCONTINUITY/,important,domain=twitch.tv
Unfortunately I do not know if this works, because I do not see ads, so it is difficult to test it.
 

Adam

Filters Developer
Staff member
Moderator
It seems that I missed something before, this rule should be better:
Code:
||ttvnw.net/v*/playlist/*.m3u8$replace=/#EXT-X-DISCONTINUITY([\s\S]*?#EXT-X-DISCONTINUITY|[\s\S]*)/,important,domain=twitch.tv
 

SergZZZ

New Member
It seems that I missed something before, this rule should be better:
Code:
||ttvnw.net/v*/playlist/*.m3u8$replace=/#EXT-X-DISCONTINUITY([\s\S]*?#EXT-X-DISCONTINUITY|[\s\S]*)/,important,domain=twitch.tv
thank you, it's not working for me in Safari for some reason I get a spinning circle as something is supposed to load, and now steam wouldn't load
 
Last edited:
Top