From a1b3e596fc24845d5c74a80c061bf3eee94618c0 Mon Sep 17 00:00:00 2001
From: Tone <66808319+Tone866@users.noreply.github.com>
Date: Sun, 28 Jul 2024 22:21:14 +0200
Subject: [PATCH] [AnisearchBridge.php] fixed youtube link (#4159)
$trailer->{'data-xsrc'} wasn't read correctly in EOT context
---
bridges/AnisearchBridge.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bridges/AnisearchBridge.php b/bridges/AnisearchBridge.php
index d5aad1c9..869b3049 100644
--- a/bridges/AnisearchBridge.php
+++ b/bridges/AnisearchBridge.php
@@ -68,8 +68,9 @@ class AnisearchBridge extends BridgeAbstract
if (isset($trailerlink)) {
$trailersite = getSimpleHTMLDOM($baseurl . $trailerlink->href);
$trailer = $trailersite->find('div#player > iframe', 0);
+ $trailer = $trailer->{'data-xsrc'};
$ytlink = <<';
EOT;