kodi-mpv-hook

February 13, 2025 · View on GitHub

mpv is an excellent choice as an External Player for Kodi, combining Kodi’s content management with mpv’s advanced playback features. However, when using streaming add-ons, this setup can break because Kodi embeds protocol options into its URLs using a custom format.

This mpv script resolves that issue by parsing Kodi's streaming URLs and extracting the necessary options so that mpv can handle them correctly.

Implemented Features

  • URL extraction
  • User-Agent support
  • Referer handling
  • Origin header parsing

To-Do

  • Support for Cookies