jsergio123 / script.module.resolveurl

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

VideoBin not working #455

Closed jumgo closed 3 years ago

jumgo commented 3 years ago

Hi there, Videobin is not working. it is getting the URL with Mozilla useragent and embed url referer. but it is not playing in kodi https://videobin.co/embed-2ibfhzh4rljh.html

source = 'https://videobin.co/embed-2ibfhzh4rljh.html'
import resolveurl as urlresolver
hosted_media = urlresolver.HostedMediaFile( url=source )
try:
    STREAM_URL = hosted_media.resolve()
except urlresolver.resolver.ResolverError as resolver_error:
    STREAM_URL = False

listitem = xbmcgui.ListItem(path=STREAM_URL)
listitem.setProperty('IsPlayable', 'true')
xbmcplugin.setResolvedUrl(int(sys.argv[1]), succeeded=True, listitem=listitem)

LOG file:

2021-04-28 21:49:56.093 T:6093870   ERROR <general>: CCurlFile::Stat - Failed: Timeout was reached(28) for https://c5.videobin.co/oudvhutndntk2yixv5cocvrojrcdf6xo7ei2x55fuhxpkkgnurytbrly6hra/v.mp4|User-Agent=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%3B+rv%3A88.0%29+Gecko%2F20100101+Firefox%2F88.0&Referer=https%3A%2F%2Fvideobin.co%2Fembed-2ibfhzh4rljh.html
2021-04-28 21:49:56.171 T:6872416   ERROR <general>: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
2021-04-28 21:49:56.171 T:6872416   ERROR <general>: CCurlFile::Open failed with code 0 for https://c5.videobin.co/oudvhutndntk2yixv5cocvrojrcdf6xo7ei2x55fuhxpkkgnurytbrly6hra/v.mp4:

2021-04-28 21:49:56.171 T:6872416   ERROR <general>: Open - <https://c5.videobin.co/oudvhutndntk2yixv5cocvrojrcdf6xo7ei2x55fuhxpkkgnurytbrly6hra/v.mp4|User-Agent=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%3B+rv%3A88.0%29+Gecko%2F20100101+Firefox%2F88.0&Referer=https%3A%2F%2Fvideobin.co%2Fembed-2ibfhzh4rljh.html> failed to open
Gujal00 commented 3 years ago

Fixed in https://github.com/jsergio123/script.module.resolveurl/commit/20f2910a75b052fc5a20bd8f7e72897ad5f79b15

jumgo commented 3 years ago

thanks. when we can see that in resolveurl