https://github.com/Eskander/kodi-mpv-hook
Parse Kodi streaming URLs with 'protocol options' when using MPV as an External Player.
https://github.com/Eskander/kodi-mpv-hook
kodi lua mpv mpv-script
Last synced: 6 months ago
JSON representation
Parse Kodi streaming URLs with 'protocol options' when using MPV as an External Player.
- Host: GitHub
- URL: https://github.com/Eskander/kodi-mpv-hook
- Owner: Eskander
- License: mit
- Created: 2024-09-16T16:49:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-12T17:58:22.000Z (over 1 year ago)
- Last Synced: 2025-01-18T20:00:01.217Z (about 1 year ago)
- Topics: kodi, lua, mpv, mpv-script
- Language: Lua
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mpv - kodi hook - Allows Kodi streaming add-ons to work correctly when using mpv as an [external player for Kodi](https://kodi.wiki/view/External_players) by parsing and extracting protocol options from Kodi's [custom URL format](https://kodi.wiki/view/HTTP). (Other)
README
# **kodi-mpv-hook**
[mpv](https://mpv.io/) is an excellent choice as an [External Player](https://kodi.wiki/view/External_players) for [Kodi](https://kodi.tv/), 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](https://kodi.wiki/view/HTTP).
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**
- [x] **URL** extraction
- [x] **User-Agent** support
- [x] **Referer** handling
- [x] **Origin** header parsing
### **To-Do**
- [ ] Support for **Cookies**