Skip to content

YouTube title value is doubled #780

@wooliet

Description

@wooliet

YouTube is returning two <title> elements in their HTML.

The "metascraper-youtube" sets the title value using:

$('title').text().replace(' - YouTube', '');

This returns both <title> elements and .text() appends them together.

If ":first" is added to the selector, only the first instance is returned.

$('title:first').text().replace(' - YouTube', '');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions