[YoutubeBridge] Playlist bug fix (#1117)

This commit allow the bridge to parse an infinite number of items of a
Youtube playlist.

It should fix #647 !
This commit is contained in:
sysadminstory 2019-05-08 22:17:48 +02:00 committed by Teromene
parent a9e2574016
commit b764204c3a
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ class YoutubeBridge extends BridgeAbstract {
$url_listing = self::URI . 'playlist?list=' . urlencode($this->request);
$html = $this->ytGetSimpleHTMLDOM($url_listing)
or returnServerError("Could not request YouTube. Tried:\n - $url_listing");
$item_count = $this->ytBridgeParseHtmlListing($html, 'tr.pl-video', '.pl-video-title a', false);
$item_count = $this->ytBridgeParseHtmlListing($html, 'tr.pl-video', '.pl-video-title a', true);
if ($item_count <= 15 && !$this->skipFeeds() && ($xml = $this->ytGetSimpleHTMLDOM($url_feed))) {
$this->ytBridgeParseXmlFeed($xml);
} else {