mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-29 14:48:52 +03:00
Merge pull request #250 from teromene/youtube-fix
Fix the doubled HTTPS.
This commit is contained in:
commit
832c503278
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ class YoutubeBridge extends BridgeAbstract {
|
|||
$videoquery = parse_url($element->find('a',0)->href, PHP_URL_QUERY); parse_str($videoquery, $videoquery);
|
||||
$item->id = $videoquery['v'];
|
||||
$item->uri = 'https://www.youtube.com/watch?v='.$item->id;
|
||||
$item->thumbnailUri = 'https:'.$element->find('img',0)->src;
|
||||
$item->thumbnailUri = $element->find('img',0)->src;
|
||||
$item->title = trim($element->find('h3',0)->plaintext);
|
||||
$item->timestamp = getPublishDate($item->id);
|
||||
$item->content = '<a href="' . $item->uri . '"><img src="' . $item->thumbnailUri . '" /></a><br><a href="' . $item->uri . '">' . $item->title . '</a>';
|
||||
|
@ -111,7 +111,7 @@ class YoutubeBridge extends BridgeAbstract {
|
|||
$videoquery = parse_url($element->find('a',0)->href, PHP_URL_QUERY); parse_str($videoquery, $videoquery);
|
||||
$item->id = $videoquery['v'];
|
||||
$item->uri = 'https://www.youtube.com/watch?v='.$item->id;
|
||||
$item->thumbnailUri = 'https:'.$element->find('img',0)->src;
|
||||
$item->thumbnailUri = $element->find('img',0)->src;
|
||||
$item->title = trim($element->find('h3',0)->plaintext);
|
||||
$item->timestamp = getPublishDate($item->id);
|
||||
$item->content = '<a href="' . $item->uri . '"><img src="' . $item->thumbnailUri . '" /></a><br><a href="' . $item->uri . '">' . $item->title . '</a>';
|
||||
|
|
Loading…
Reference in a new issue