From bed82f35d811229c3cc52918f75737c2c7dda880 Mon Sep 17 00:00:00 2001 From: Adrik Date: Fri, 16 Jun 2023 13:50:58 -0400 Subject: [PATCH] Support more types of YouTube URLs --- chat_downloader/sites/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat_downloader/sites/youtube.py b/chat_downloader/sites/youtube.py index 77139ab..37821eb 100644 --- a/chat_downloader/sites/youtube.py +++ b/chat_downloader/sites/youtube.py @@ -523,8 +523,8 @@ def __init__(self, **kwargs): youtube\.googleapis\.com/) # the various hostnames, with wildcard subdomains (?:.*?\#/)? # handle anchor (#/) redirect urls (?: # the various things that can precede the ID: - # v/ or embed/ or e/ - (?:(?:v|embed|e)/(?!videoseries)) + # v/ or embed/ or e/, or the newer shorts/, live/ or watch/ + (?:(?:v|embed|e|shorts|live|watch)/(?!videoseries)) |(?: # or the v= param in all its forms # preceding watch(_popup|.php) or nothing (like /?v=xxxx) (?:(?:watch|movie)(?:_popup)?(?:\.php)?/?)?