ghokun / appletv3-iptv

M3U playlist player for Apple TV 3 devices.
MIT License
23 stars 4 forks source link
appletv golang

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.

  2. 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
  3. Download binary for your platform from releases.
  4. 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
  2. Open Apple TV
  3. Go to Settings > General
  4. Set Send Data to Apple to No.
  5. Press Play button on Send Data to Apple
  6. Add Profile > Ok
  7. Enter URL: http://appletv.redbull.tv/redbulltv.cer
  8. Open RedbullTV application

Compability

Device OS
ATV3 A1469 7.6.2, 7.7

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