Skip to content

Youtube channels with spaces in name will not work #119

Open
@qbabooba

Description

@qbabooba

There is an issue with the youtube extraction regex that stops if there is a space in channel name. Eg

https://www.youtube.com/watch?v=kU9y8rKCe3w&ab_channel=Well%2BGood

will not work,

the issue is with regex
(?:https?://)?(?:www.)?(?:(?:youtu.be/)|(?:youtube.com)/(?:v/|u/\w/|embed/|watch))(?:(?:?v=)?([^#&?=]))?((?:[?&]\w=\w*)*)```

that should be rewritten to
(?:https?://)?(?:www.)?(?:(?:youtu.be/)|(?:youtube.com)/(?:v/|u/\w/|embed/|watch))(?:(?:?v=)?([^#&?=]))?((?:[?&]\w=[\w%+]))

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