Fix StreamingCommunity e AnimeUnity

This commit is contained in:
Alhaziel01
2022-09-28 10:32:28 +02:00
parent e57e4410f7
commit a499bd7cf1
5 changed files with 69 additions and 73 deletions

View File

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