test referer ai server

This commit is contained in:
marco
2020-11-26 14:49:24 +01:00
parent f779782cdc
commit 055e09f033
3 changed files with 10 additions and 3 deletions

View File

@@ -629,6 +629,10 @@ def play_video(item, strm=False, force_direct=False, autoplay=False):
default_action = config.get_setting("default_action")
logger.debug("default_action=%s" % default_action)
# pass referer
from core import httptools
httptools.default_headers['Referer'] = item.referer
# Open the selection dialog to see the available options
opciones, video_urls, seleccion, salir = get_dialogo_opciones(item, default_action, strm, autoplay)
if salir: exit()