deividgdt / ytadsblocker

YTadsblocker is a script to block all the Youtube's advertisement in Pi-Hole
GNU General Public License v3.0
97 stars 14 forks source link

LOOP VIDEO OFF #8

Closed DFlexy closed 3 years ago

DFlexy commented 3 years ago

Hi i teste here more have loop off

image

arankaren commented 3 years ago

From my point of view, the ads are rx.sn-xxxxxx.googlevideo.com

For example:

URL of Real Video

$ youtube-dl --get-url --format 22 https://www.youtube.com/watch?v=eVIozKR9p50
https://r3---sn-hp57knss.googlevideo.com/videoplayback?expire=1615856049&ei=Ua1PYJyVCd2AyAXk9LyABw&ip=2001%3A1388%3A2f09%3A2fe9%3A74aa%3Aee65%3Aa2e5%3Af2b2&id=o-APf1pLuzp97InrSS9YHWwfxHwM_sjKcY4Qz8plJJTr7x&itag=22&source=youtube&requiressl=yes&mh=uf&mm=31%2C26&mn=sn-hp57knss%2Csn-hp57ynel&ms=au%2Conr&mv=m&mvi=3&pl=47&gcr=pe&initcwndbps=620000&vprv=1&mime=video%2Fmp4&ns=kPLZO8CmNiFrK6K2UsAbnzcF&cnr=14&ratebypass=yes&dur=8575.849&lmt=1615570643806787&mt=1615834387&fvip=3&fexp=24001374%2C24007246&beids=24010696&c=WEB&txp=5535432&n=WIG2uyc7ebNigK&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cvprv%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAJY159A4FdqMUXJkBS3aa-p132ebLSwd3z0JUb-4V1j0AiBA0NDwOe538rgku7GI-UID9ec2W3h-cXtM6OMM7VZ36g%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAJXVurgmiIamQH4nrwnNAMj_7ZvD_lzxnLddArzUySb3AiAEPo9zJDS6yCq8s_-3s7ZdT4qIKTlB3dNOAnk289Sd3g%3D%3D
deividgdt commented 3 years ago

Hi,

As I have said before, when you block a big amount of subdomains that match the following pattern: r*---* ( pay attention to the 3 dashes) the videos get block, and Youtube is not able to load any content.

That's why long time ago I modified the pattern to avoid block those subdomains.

Kind regards,