forked from blallo/rss-bridge
parent
1b1ab6a66e
commit
0e2b80d5d7
1 changed files with 6 additions and 2 deletions
|
@ -53,7 +53,11 @@ class YoutubeBridge extends BridgeAbstract {
|
|||
$author = $html->innertext;
|
||||
$author = substr($author, strpos($author, '"author=') + 8);
|
||||
$author = substr($author, 0, strpos($author, '\u0026'));
|
||||
|
||||
if(!is_null($html->find('div#watch-description-text', 0)))
|
||||
$desc = $html->find('div#watch-description-text', 0)->innertext;
|
||||
|
||||
if(!is_null($html->find('meta[itemprop=datePublished]', 0)))
|
||||
$time = strtotime($html->find('meta[itemprop=datePublished]', 0)->getAttribute('content'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue