diff --git a/bridges/YoutubeBridge.php b/bridges/YoutubeBridge.php index 1e5f021..37ee7c7 100644 --- a/bridges/YoutubeBridge.php +++ b/bridges/YoutubeBridge.php @@ -102,6 +102,7 @@ class YoutubeBridge extends BridgeAbstract { $desc = ''; $time = 0; $vid = str_replace('/watch?v=', '', $element->find('a', 0)->href); + $vid = substr($vid, 0, strpos($vid, '&') ?: strlen($vid)); $title = $this->ytBridgeFixTitle($element->find($title_selector, 0)->plaintext); if($title != '[Private Video]') { $this->ytBridgeQueryVideoInfo($vid, $author, $desc, $time);