Skip to content

Commit

Permalink
🔧 youtube: youtu.be links with a video id containing -
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrela committed Sep 9, 2024
1 parent c1e3166 commit 605d4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/websites.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def regexes(self) -> list[re.Pattern[str]]:
re.compile(
r"https?://(www\.|music\.|m\.)?youtube\.com/watch(\?\S+)"),
re.compile(
r"https?://(?:www\.)?youtu.be/(\w+)(?:\?\S+)?"),
r"https?://(?:www\.)?youtu.be/([\w-]+)(?:\?\S+)?"),
]

def fix_link(self, match: re.Match) -> str:
Expand Down

0 comments on commit 605d4f7

Please sign in to comment.