Skip to content

Commit

Permalink
Support more types of YouTube URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
krichbanana committed Jun 16, 2023
1 parent 52bf6e5 commit bed82f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chat_downloader/sites/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)?/?)?
Expand Down

0 comments on commit bed82f3

Please sign in to comment.