Skip to content

Commit

Permalink
[AnisearchBridge.php] fixed youtube link (#4159)
Browse files Browse the repository at this point in the history
$trailer->{'data-xsrc'} wasn't read correctly in EOT context
  • Loading branch information
Tone866 authored Jul 28, 2024
1 parent 2fcba49 commit a1b3e59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridges/AnisearchBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ public function collectData()
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;
Expand Down

0 comments on commit a1b3e59

Please sign in to comment.