Rewrite URLs before they reach Kodi
#1
I was wondering if there's a way to intercept and rewrite URLs in the plugin/script level. That is, when opening a stream URL from any add-on, the URL is then passed to this script, possibly modified, then passed on to Kodi to be played.

I'm asking because I have this HTTP proxy that works like the Axel add-on. I set it as the proxy in Kodi and it does multiple connections to the URL. Problem is, it only works if it's an HTTP request. It can also handle an m3u file and serve it like a live stream, but Kodi handles m3u files itself.

E.g. I'd like to modify URLs like:

http://remote.com/file.m3u -> http://remote.com/file__m3u__.ts
https://remote.com/file.mp4 -> http://remote.com:443/file.mp4

I've tried modifying the urlresolver add-on and it works, but I was wondering if there's a more universal solution short of modifying Kodi itself.

Thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Rewrite URLs before they reach Kodi0