Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add youtube video description to content #5

Open
wants to merge 1 commit into
base: min-php-7.2
Choose a base branch
from

Conversation

swentel
Copy link

@swentel swentel commented Apr 22, 2020

Adds YouTube media:description to content.

With the new flag in XRay, the iframe tag can also be preserved for direct playing in readers then, if wanted of course.

This is code for a test in XRay - the rss feed is the from your rss channel, located in a new dir www.youtube.com

youtube.rss.txt
(had to rename to .txt because it wouldn't upload otherwise)

  public function testYouTubeFeed() {
    $url = 'http://www.youtube.com/youtube.rss';
    $response = $this->parse(['url' => $url, 'expect' => 'feed']);

    $body = $response->getContent();
    $this->assertEquals(200, $response->getStatusCode());
    $result = json_decode($body);
    $data = $result->data;
    $this->assertNotEmpty($data->items[0]->content->text);
    $this->assertContains('The just-announced ATEM Mini Pro has some incredible new features', $data->items[0]->content->text);
  }
php```

@swentel swentel changed the title Add description to content Add youtube video description to content Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant