diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index d44395d3..740dfae8 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -1017,7 +1017,7 @@ def play_video(item, strm=False, force_direct=False, autoplay=False): # we get the selected video mediaurl, view, mpd, hls = get_video_seleccionado(item, seleccion, video_urls, autoplay) if not mediaurl: return - headers = {'User-Agent': httptools.get_user_agent(), 'Referer': item.referer} + headers = {'User-Agent': httptools.get_user_agent(), 'Referer': item.url} # Kodi does not seems to allow this, leaving there as may work in the future # if config.get_setting('resolver_dns'): # try: