mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[youtube:truncated_url] Also match mail subscription links (#2214)
This commit is contained in:
parent
8b769664c4
commit
975d35dbab
1 changed files with 4 additions and 1 deletions
|
@ -1805,7 +1805,10 @@ def _real_extract(self, url):
|
|||
class YoutubeTruncatedURLIE(InfoExtractor):
|
||||
IE_NAME = 'youtube:truncated_url'
|
||||
IE_DESC = False # Do not list
|
||||
_VALID_URL = r'(?:https?://)?[^/]+/watch\?feature=[a-z_]+$'
|
||||
_VALID_URL = r'''(?x)
|
||||
(?:https?://)?[^/]+/watch\?feature=[a-z_]+$|
|
||||
(?:https?://)?(?:www\.)?youtube\.com/attribution_link\?a=[^&]+$
|
||||
'''
|
||||
|
||||
def _real_extract(self, url):
|
||||
raise ExtractorError(
|
||||
|
|
Loading…
Reference in a new issue