[AnisearchBridge.php] fixed youtube link (#4159)

$trailer->{'data-xsrc'} wasn't read correctly in EOT context
This commit is contained in:
Tone 2024-07-28 22:21:14 +02:00 committed by GitHub
parent 2fcba49433
commit a1b3e596fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
<br /><iframe width="560" height="315" src="' . $trailer->{'data-xsrc'} . '" title="YouTube video player"
<br /><iframe width="560" height="315" src="$trailer" title="YouTube video player"
frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>';
EOT;