Last active
December 21, 2019 23:45
-
-
Save Fazzani/bd444ea76a67a0eefb3de3602fcd6eb9 to your computer and use it in GitHub Desktop.
webgrabUpdateChannels.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -it --rm -e https://raw.githubusercontent.com/Fazzani/xmltv/master/default.xmltv -v "$(pwd):/data" synker/webgraboneshoturl:latest | |
| docker run -it --rm -v "${PWD}/grab.xml:/config2/WebGrab++.config.xml" -v "${PWD}:/data" synker/webgraboneshot:latest | |
| awk '/@auto_xml_channel_start/{flag=1;next}/@auto_xml_channel_end/{flag=0}flag' grab.ini | sed 's/^.//' > grabupdate.ini | |
| docker run -it --rm -v "$(pwd)/config:/config" -v "$(pwd)/data:/data" linuxserver/webgrabplus /bin/bash | |
| curl -o updateChannels.sh https://gist.githubusercontent.com/Fazzani/bd444ea76a67a0eefb3de3602fcd6eb9/raw/8308d8f9166de87125315c39b4b01c0c4cb74080/webgrabUpdateChannels.sh && chmod +x updateChannels.sh /defaults/update.sh | |
| docker run -it --rm \ | |
| -e PAT="56f15284234a3464b04200404aa2a340c7974049xx" \ | |
| -v $(pwd)/config:/config" \ | |
| -v "$(pwd)/data:/data" \ | |
| --entrypoint="/bin/bash" \ | |
| synker/webgraboneshot:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| find . -iname "*.ini" | while read i | |
| do | |
| echo "Generating webgrab for updating channels.xml files => $i" | |
| sed -i 's/^\*//' "$i" | |
| done | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment