mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-17 11:15:16 +00:00
parent
8125b415d8
commit
94f2364cd8
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,7 @@ final class Extractor
|
||||||
public static function extract($url)
|
public static function extract($url)
|
||||||
{
|
{
|
||||||
$pageContent = Extractor::getPageContent(new Url(base64_encode($url)));
|
$pageContent = Extractor::getPageContent(new Url(base64_encode($url)));
|
||||||
$title = ($pageContent['rss']['channel']['item']['title'] != '') ? $pageContent['rss']['channel']['item']['title'] : _('Untitled');
|
$title = $pageContent['rss']['channel']['item']['title'] ?: 'Untitled';
|
||||||
$body = $pageContent['rss']['channel']['item']['description'];
|
$body = $pageContent['rss']['channel']['item']['description'];
|
||||||
|
|
||||||
$content = new Content();
|
$content = new Content();
|
||||||
|
@ -19,6 +19,7 @@ final class Extractor
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the content for a given URL (by a call to FullTextFeed)
|
* Get the content for a given URL (by a call to FullTextFeed)
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue