mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-24 02:16:08 +03:00
fix(tapas): bug in prior refactor (#3758)
This commit is contained in:
parent
611fabe46c
commit
f7f3ca0126
1 changed files with 3 additions and 2 deletions
|
@ -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/';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue