mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-05 00:59:35 +00:00
fix(youtube): bug in prior refactor (#3756)
This commit is contained in:
parent
cf9558648e
commit
2aa52aa99a
@ -425,11 +425,12 @@ class YoutubeBridge extends BridgeAbstract
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user