Open dvpetta opened 4 years ago
I should add that I have whitelisted s.youtube.com
I'd like to know how to stop the schedule for this script as well
For the schedule part, go back to crontab -e and put a # sign in front of step 5 code.
Only part im confused with is why add each individual google video in the block list if its available when adding them to the adlist, just boggles my mind.
the other part..... the list isn't matching up to direct them to 127.0.0.1 to be blocked. Normally there is 127.0.0.1 url but just plain url, pihole will keep grabbing like there's changes when there isn't for the amount of days.
Thanks @91ajames but I'm not really understanding your instructions. Sorry but I'm a newbie at this and I'm not clear on what step 5 is of the code. Any chance you can spell it out for me?
Not a problem @dvpetta
crontab -e
5-Add this line to make it runs every 1 hour, but you can change it to whatever you like
0 */1 * * * sudo /home/pi/youTube_ads_4_pi-hole/youtube.sh >/dev/null
to
# 0 */1 * * * sudo /home/pi/youTube_ads_4_pi-hole/youtube.sh >/dev/null
any code with the pound #
in front of it is being ignored.
edit...
after further investigating, I saw this report. Be more helpful if the moder tell users in the readme there are 2 ways to do this which to me found it confusing at first for videos not working
when both are enabled
. which i hit a few ad videos playing under private chrome for a test while i use firefox the most.
https://github.com/kboghdady/youTube_ads_4_pi-hole/issues/72
same problem, this list is overblocking, if I put for example "r3---sn-i5h7lner.googlevideo.com" to whitelist, I can watch a video. I think youtube tries to veil his ads
I believe youtube has switched to serving ads and content from the same servers. I've been watching my Firefox and Chrome network inspectors and if I sort by Domains and compare what's downloading during an ad playing vs what's downloading during. With this blocklist enabled sometimes youtube will play and the ads will be blocked, sometimes the video won't load at all and you need to reload the page to try again (getting a different server in the process), and sometimes both ads and content will play.
Hello
I'm having trouble viewing videos now on my Android TV after installing your code on my rasberry pi with pi hole. It seemed like I had ads blocked for the first video but since then I only get ads and no videos. Is there a way to inspect what has happened in pi hole to fix this?