1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-03 23:27:32 +02:00

[YoutubeBridge] Remove superfluous div selectors

This commit is contained in:
logmanoriginal
2018-02-16 22:26:18 +01:00
parent 4f6277b6b5
commit 962617086e

View File

@@ -70,8 +70,8 @@ class YoutubeBridge extends BridgeAbstract {
$author = $json->itemListElement[0]->item->name;
}
if(!is_null($html->find('div#watch-description-text', 0)))
$desc = $html->find('div#watch-description-text', 0)->innertext;
if(!is_null($html->find('#watch-description-text', 0)))
$desc = $html->find('#watch-description-text', 0)->innertext;
if(!is_null($html->find('meta[itemprop=datePublished]', 0)))
$time = strtotime($html->find('meta[itemprop=datePublished]', 0)->getAttribute('content'));