Skip to content

Instantly share code, notes, and snippets.

@hazcod
Created January 18, 2018 16:56
Show Gist options
  • Save hazcod/0e7a4768f0df1ed006afb75adc8c2f79 to your computer and use it in GitHub Desktop.
Save hazcod/0e7a4768f0df1ed006afb75adc8c2f79 to your computer and use it in GitHub Desktop.
EPG grab script for tvheadend EPG
#!/usr/bin/env sh
countries=(belgium)
for country in ${countries[@]}; do
curl --output - "http://epg.baznga.tvip.xyz/${country}.xml.gz" | gunzip -f | curl -d @- -X POST -m 1 --unix-socket /config/epggrab/xmltv.sock http://localhost 2>/dev/null
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment