diff --git a/bridges/TapasBridge.php b/bridges/TapasBridge.php index ea6a7ff67f7..8009e64d216 100644 --- a/bridges/TapasBridge.php +++ b/bridges/TapasBridge.php @@ -35,7 +35,7 @@ public function collectData() 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 @@ protected function parseItem(array $item) // } // } + $item['content'] ??= ''; if ($this->getInput('extend_content')) { $html = getSimpleHTMLDOM($item['uri']); $item['content'] = $item['content'] ?? ''; @@ -77,6 +78,6 @@ public function getURI() if ($this->id) { return self::URI . 'rss/series/' . $this->id; } - return self::URI; + return self::URI . 'series/' . $this->getInput('title') . '/info/'; } }