VideoPlayer-CCurlFile-effective URL
#1
hey ,...

here is the situation,...

i have a url of a video
i play the url in kodi,...

with this log:

Code:
NOTICE: VideoPlayer: Opening:urlA
DEBUG: CurlFile::Open(05BEF3A0) urlA
DEBUG: CCurlFile::Open - effective URL: <urlB>

is it possible to get the ""effective url"" , urlB for an addon,... ?

i hope my question is understandable..?

thx for your comprehension,...
.
Reply
#2
Couldn't you just curl the url or use some other library to read the url response, or are you looking to actually get it from the video player?
Reply
#3
....

in fact, i use already libraries to fetch the readable url video and i work with a lot of servers

so it will be nice if from the ""readable url"" of a video played with the Videoplayer an addon could be able to have access to the ""effective url"" from the Videoplayer,...

is it possible for an addon to have acces to the ""effective url" of a video from the video player itself ?
Reply
#4
Depends.

If urlA and urlB are both on a remote HTTP server that does simple redirect, then you can make a HEAD request to that server, for example with requests, and catch a final URL after redirect.

If urlA is an internal plugin:// URL that invokes some plugin which, in its turn, resolves that internal URL to a real playable URL, then the answer is "no". Such "lazy" URL resolving is by design.
Reply
#5
Thx for the information complement,... Wink
Reply

Logout Mark Read Team Forum Stats Members Help
VideoPlayer-CCurlFile-effective URL0