Fix Metalvideo e Youtube (Necessarie API personali)

This commit is contained in:
Alhaziel01
2023-06-22 18:30:18 +02:00
parent d42310a1ac
commit 68048f1d61
3 changed files with 52 additions and 55 deletions

View File

@@ -1107,7 +1107,7 @@ def play_video(item, strm=False, force_direct=False, autoplay=False):
# logger.error('Failed to resolve hostname, fallback to normal dns')
from core import support
# support.dbg()
if '|' not in mediaurl and item.referer != False:
if '|' not in mediaurl and item.referer != False and 'youtube' not in mediaurl:
mediaurl = mediaurl + '|' + urllib.urlencode(headers)
# video information is obtained.