This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
htpc:kodi [2025/02/07 20:48] – created Yuki | htpc:kodi [2025/02/26 16:47] (current) – Yuki | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Kodi ====== | ====== Kodi ====== | ||
+ | FIXME //This page needs to be tested on the current setup// | ||
+ | |||
+ | I mostly use Kodi to watch IPTV on it and some movies, although going on the respective TV channels' | ||
+ | |||
+ | ===== Useful plugins ===== | ||
+ | |||
+ | |[[https:// | ||
+ | |IPTV Simple Client|See [[#iptv]]| | ||
+ | |InputStream Helper|Make sure Widevine is installed, see [[# | ||
+ | |InputStream Adaptive|::: | ||
===== IPTV ===== | ===== IPTV ===== | ||
- | FIXME //This page is a stub.// | + | Kodi has a plugin for IPTV from M3U playlists, with support for EPG. I like to assign channel numbers as if it was on an actual cable set-top box from a proper TV provider, so I usually make my own playlists so I can add the numbers and only keep the channels that works for me. |
+ | |||
+ | ==== Installation ==== | ||
+ | |||
+ | - Install IPTV Simple Client. | ||
+ | - In Kodi's PVR & Live TV settings, make sure //Use channel order from backend(s)// | ||
+ | - Obtain the URL corresponding to your playlist, and feed it in the IPTV Simple Client settings as the M3U playlist URL. | ||
+ | - Make sure Auto refresh mode is enabled and is set to at least once a day. | ||
+ | |||
+ | ==== Common M3U format ==== | ||
+ | <code m3u [highlight_lines_extra=" | ||
+ | #EXTM3U | ||
+ | #EXTINF:-1 tvg-id=" | ||
+ | https://example.com/ | ||
+ | </ | ||
+ | ^EXTINF attribute^Comments^ | ||
+ | |tvg-id|Station ID, used to sync with the EPG and should be the same as in the EPG config| | ||
+ | |tvg-chno|Kodi will use it as a channel number. You can use a decimal point, useful for mapping radio to their FM frequencies or TV to your region' | ||
+ | |tvg-logo|URL to a channel logo| | ||
+ | |group-title|Kodi can use it to make categories| | ||
+ | |radio|Set to " | ||
+ | |||
+ | It works fairly well for most free-to-air channels and radio, although some of them use some tricks like dynamic URLs and formats the IPTV plugin won't like so you'd need another dedicated plugin, although you can use some scripts on a HTTP server to generate a proper M3U playlist for them ;) Some of them are also geolocalized, | ||
+ | |||
+ | There' | ||
+ | |||
+ | ==== EPG ==== | ||
+ | |||
+ | FIXME //Needs to run the EPG script on a cron job somewhere and point Kodi to it// | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | ==== Sources ==== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | ===== Widevine ===== | ||
+ | |||
+ | Required for some channels. | ||
+ | |||
+ | If you install Widevine from the InputStream Helper settings, it's going to download a ChromeOS recovery image and extract the needed file from it, if you don't want to waste time and bandwidth you might want to fetch it from an existing web browser install instead. Depending of the browser, you can find it either in ''/ | ||
+ | <code bash> | ||
+ | mkdir -p ~/ | ||
+ | ln -s / | ||
+ | </ | ||
+ | Note that we're doing a symbolic link, so we can automatically keep it updated. | ||
+ | |||
+ | Now on the playlist you can do something like this: | ||
+ | < | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | https:// | ||
+ | </ |