1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-01 14:20:16 +02:00

fix: various fixes (#3741)

This commit is contained in:
Dag
2023-10-12 19:49:04 +02:00
committed by GitHub
parent d21f8cebf6
commit 6a72c56cdd
3 changed files with 28 additions and 19 deletions

View File

@@ -158,13 +158,12 @@ function getSimpleHTMLDOM(
$defaultBRText = DEFAULT_BR_TEXT,
$defaultSpanText = DEFAULT_SPAN_TEXT
) {
$content = getContents(
$url,
$header ?? [],
$opts ?? []
);
$html = getContents($url, $header ?? [], $opts ?? []);
if ($html === '') {
throw new \Exception('Unable to parse dom because the http response was the empty string');
}
return str_get_html(
$content,
$html,
$lowercase,
$forceTagsClosed,
$target_charset,