From 962617086ebe2868a40f16592ac3dd3ba4748bf1 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Fri, 16 Feb 2018 22:26:18 +0100 Subject: [PATCH] [YoutubeBridge] Remove superfluous div selectors --- bridges/YoutubeBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/YoutubeBridge.php b/bridges/YoutubeBridge.php index b4c3f6c0..32d42164 100644 --- a/bridges/YoutubeBridge.php +++ b/bridges/YoutubeBridge.php @@ -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'));