Closed samuelrhaynes closed 4 years ago
I have this issue, i couldn't tell why it was freezing then i realized it's updating the list every hour
Hi @samuelrhaynes and @SamboMambo!
Freezeing is normal, blacklist contains more than 22,000 lines 💃 Instead of using the youtube.sh script and running the blacklist every hour, I found much more convenient to insert the raw link of the file youtubelist.txt directly in the "Blocklists used to generate Pi-hole's Gravity" settings.
https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/youtubelist.txt
I have also modified crontab to perform Pi-hole's Gravity generation once a day as follows: login as root or use sudo
sudo cd /etc/cron.d
sudo vi pihole
and modify the line
35 4 * * * root PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
so, every day at 4:35 (when I'm normally sleeping) crontab updates gravity. In this way the blacklist wasn't touched.
As described in README.md more information about crontab are there: https://crontab.guru/
ATTENTION: the modification of the file /etc/cron.d/pi-hole described above is to be carried out after each pi-hole release update
you can add this link https://raw.githubusercontent.com/kboghdady/youTube_ads_4_pi-hole/master/youtubelist.txt
into this file /etc/pihole/adlists.list
and definitely make the pihole update using the crontab script that @denizdogan mention
it is very challenging to make a long list of all the youtube list into a file. especially if you want to edit the blacklist via the pihole GUI
Hey mate, loving the script, however I think it's so large it causes the pihole admin to freeze if I try and load the blacklist
Anyone else have this issue? Any work arounds?