From f7f3ca0126ed42ded38c9d299a12cb6c8dfccba0 Mon Sep 17 00:00:00 2001 From: Dag Date: Sun, 15 Oct 2023 03:37:50 +0200 Subject: [PATCH] fix(tapas): bug in prior refactor (#3758) --- bridges/TapasBridge.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bridges/TapasBridge.php b/bridges/TapasBridge.php index ea6a7ff6..8009e64d 100644 --- a/bridges/TapasBridge.php +++ b/bridges/TapasBridge.php @@ -35,7 +35,7 @@ class TapasBridge extends FeedExpander if (preg_match('/^[\d]+$/', $this->getInput('title'))) { $this->id = $this->getInput('title'); } - if ($this->getInput('force_title') or !$this->id) { + if ($this->getInput('force_title') || !$this->id) { $html = getSimpleHTMLDOM($this->getURI()) or returnServerError('Could not request ' . $this->getURI()); $this->id = $html->find('meta[property$=":url"]', 0)->content; $this->id = str_ireplace(['tapastic://series/', '/info'], '', $this->id); @@ -53,6 +53,7 @@ class TapasBridge extends FeedExpander // } // } + $item['content'] ??= ''; if ($this->getInput('extend_content')) { $html = getSimpleHTMLDOM($item['uri']); $item['content'] = $item['content'] ?? ''; @@ -77,6 +78,6 @@ class TapasBridge extends FeedExpander if ($this->id) { return self::URI . 'rss/series/' . $this->id; } - return self::URI; + return self::URI . 'series/' . $this->getInput('title') . '/info/'; } }