jsergio123 / script.module.resolveurl

Fork of the UrlResolver from tknorris
GNU General Public License v2.0
111 stars 97 forks source link

hosters list #464

Closed caperucitaferoz closed 3 years ago

caperucitaferoz commented 3 years ago

Is there a way to get a list of all supported hosters?

soter80 commented 3 years ago

in C:\Users\User\AppData\Roaming\Kodi\addons\script.module.resolveurl\lib\resolveurl\plugins

you find all supported hosters

Is there a way to get a list of all supported hosters?

caperucitaferoz commented 3 years ago

Sorry I didn't explain it properly. I mean a function to obtain data about the supported hosts such as:

Gujal00 commented 3 years ago

No, there is no such function exposed you just pass the link to resolveurl.HostedMediaFile(url=link) and see if it is True or False

caperucitaferoz commented 3 years ago

And what difference is there between that and doing resolveurl.resolve (url) and checking for result?

Gujal00 commented 3 years ago

The difference is resolveurl.HostedMediaFile(url=link) is instantaneous as it checks if there is a resolver available. resolveurl.resolve(url) on the other hand, actually resolves the url and is slow. So normal usage is:

if resolveurl.HostedMediaFile(link):
    stream_url = resolveurl.resolve(link)