From 644d13686c573e0b05fc6cf65e46d715b37a88a8 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Thu, 19 Apr 2018 09:03:29 +0500 Subject: [PATCH] [YoutubeBridge] Removed duration in titles on search mode --- bridges/YoutubeBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/YoutubeBridge.php b/bridges/YoutubeBridge.php index 694e85e..302a59a 100644 --- a/bridges/YoutubeBridge.php +++ b/bridges/YoutubeBridge.php @@ -207,7 +207,7 @@ class YoutubeBridge extends BridgeAbstract { $html = $this->ytGetSimpleHTMLDOM($url_listing) or returnServerError("Could not request YouTube. Tried:\n - $url_listing"); - $this->ytBridgeParseHtmlListing($html, 'div.yt-lockup', 'h3'); + $this->ytBridgeParseHtmlListing($html, 'div.yt-lockup', 'h3 > a'); $this->feedName = 'Search: ' . str_replace(' - YouTube', '', $html->find('title', 0)->plaintext); // feedName will be used by getName() } else { /* no valid mode */ returnClientError("You must either specify either:\n - YouTube