Kodi
IPTV Simple PVR Addon
Xamp or apache
Dropbox account
Zap2it account
zap2xml
Instructions
1. Setup zap2xml .bat file like this to output the file for Dropbox syncing in the public folder: zap2xml -u username -p password -e -O -D -A -I -o "PATH\Dropbox\Public\xmltv.xml"
2. Setup .m3u as shown below by using the contents of the xml file, add as many channels as you like. My example outputs the untouched mpeg2 video and ac3 audio.
3. Place .m3u in public Dropbox folder
4. Setup scheduled task to run .bat file every few days in Windows “Task Scheduler”
5. Install Xamp/Apache
6. Edit httpd.conf
a. Change Listen port to 8080
b. Uncomment
Code: Select all
LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_http2_module modules/mod_proxy_http2.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
d. change ServerName localhost to port 8080
7. Edit httpd-vhosts.conf
a.
Code: Select all
<VirtualHost *:8080>
ServerName localhost
ProxyPass / http://HDHR IP:5004/
ProxyPassReverse / http://HDHR IP:5004/
</VirtualHost>
9. Configure PVR IPTV Simple Client Addon by making sure Remote path is selected in the General and EPG Setting tabs. Add the shared Dropbox URL for the .m3u and .xml into each tab
10. Make sure to change the end of each Dropbox URL to dl=1 instead of dl=0
11. Restart Kodi and enjoy
Template
XML Contents
<channel id="I16689331.labs.zap2it.com">
<display-name>502 WCBSDT</display-name>
<display-name>502</display-name>
<display-name>WCBSDT</display-name>
<icon src="https://zap2it.tmsimg.com/h3/NowShowing ... _h3_aa.png" />
</channel>
.M3U Contents
#EXTM3U
#EXTINF:-1 tvg-name="502_WCBSDT" tvg-logo="special://home/media\Logos\CBS.png",CBS
http://External IP:8080/auto/v502
#EXTINF:-1 tvg-name="504_WNBCDT" tvg-logo="special://home/media\Logos\NBC.png",NBC
http://External IP:8080/auto/v504