Skip to content

Instantly share code, notes, and snippets.

@sturman
Last active December 4, 2018 08:46
Show Gist options
  • Save sturman/d78dc5174a762fb7bd553590c4bec352 to your computer and use it in GitHub Desktop.
Save sturman/d78dc5174a762fb7bd553590c4bec352 to your computer and use it in GitHub Desktop.
Prepare edem.tv playlist as described here http://epg.it999.ru/
#!/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