Last active
December 4, 2018 08:46
-
-
Save sturman/d78dc5174a762fb7bd553590c4bec352 to your computer and use it in GitHub Desktop.
Prepare edem.tv playlist as described here http://epg.it999.ru/
This file contains 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
#!/usr/bin/env bash | |
if [[ $# -lt 2 ]]; then | |
echo "Please specify parameters" | |
echo "For example, ./convert_edem.tv_playlist.sh ABCDE123456 123456abc" | |
exit 1 | |
fi | |
ACCESS_KEY=$1 | |
DOMAIN=$2 | |
wget -q http://epg.it999.ru/edem_epg_ico.m3u8 -O edem_epg_ico.m3u8 | |
sed -i -e "s/00000000000000/${ACCESS_KEY}/g" edem_epg_ico.m3u8 | |
sed -i -e "s/localhost/${DOMAIN}.iptvspy.net/g" edem_epg_ico.m3u8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment