Skip to content

ghokun/appletv3-iptv

Repository files navigation

Apple TV 3 IPTV

This is an IPTV application for Apple TV 3 devices. It replaces RedbullTV app.

Installation

  1. Create DNS record for appletv.redbull.tv in your network.

appletv.redbull.tv should point to ip address that appletv3-iptv runs.

  1. Generate certificates for appletv.redbull.tv
openssl req -new -nodes -newkey rsa:2048 -out redbulltv.pem -keyout redbulltv.key -x509 -days 7300 -subj "/C=US/CN=appletv.redbull.tv"
openssl x509 -in redbulltv.pem -outform der -out redbulltv.cer && cat redbulltv.key >> redbulltv.pem
  1. Download binary for your platform from releases.
  2. Create a settings file and run
# See sample/config.yaml
---
# You can leave m3u link empty and set it from settings in app
m3uPath: ./sample/sample.m3u # or https://domain.com/sample.m3u
httpPort: "80"
httpsPort: "443"
cerPath: ./sample/certs/redbulltv.cer
pemPath: ./sample/certs/redbulltv.pem
keyPath: ./sample/certs/redbulltv.key
logToFile: true
loggingPath: log
recents: []
favorites: []

Run from command line:

chmod +x appletv3-iptv
./appletv3-iptv -config config.yaml # May need administrative permissions ports are under 1024

Run as a systemd service:

[Unit]
Description=appletv3-iptv

[Service]
User=root
ExecStart=/opt/appletv3-iptv/appletv3-iptv -config /opt/appletv3-iptv/config.yaml
Restart=always

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable appletv3-iptv.service 
sudo systemctl start appletv3-iptv.service
  1. Install profile on Apple TV
1. Open Apple TV
2. Go to Settings > General
3. Set Send Data to Apple to `No`.
4. Press `Play` button on Send Data to Apple
5. Add Profile > Ok
6. Enter URL: http://appletv.redbull.tv/redbulltv.cer
  1. Open RedbullTV application

Compability

Device OS
ATV3 A1469 7.6.2, 7.7, 7.9

Credits

Code parts or ideas are taken from following repositories:

Screenshots

Screen Shot 2021-04-13 at 21 50 28

Screen Shot 2021-04-13 at 21 35 54

Tasks

  • Cleanup javascript files
  • Inject application icon
  • EPG support
  • Include DNS server
  • Prevent Apple TV software update
  • Add screenshots