Skip to content

Commit

Permalink
fix(youtube): bug in prior refactor (#3756)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan authored Oct 14, 2023
1 parent cf95586 commit 2aa52aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bridges/YoutubeBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,12 @@ private function extractItemsFromXmlFeed($xml)
private function fetch($url, bool $cache = false)
{
$header = ['Accept-Language: en-US'];
$ttl = 86400;
$stripNewlines = false;
if ($cache) {
$ttl = 86400;
return getSimpleHTMLDOMCached($url, $ttl, $header);
return getSimpleHTMLDOMCached($url, $ttl, $header, [], true, true, DEFAULT_TARGET_CHARSET, $stripNewlines);
}
return getSimpleHTMLDOM($url, $header);
return getSimpleHTMLDOM($url, $header, [], true, true, DEFAULT_TARGET_CHARSET, $stripNewlines);
}

private function extractJsonFromHtml($html)
Expand Down

0 comments on commit 2aa52aa

Please sign in to comment.