1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-18 12:39:26 +01:00

[youtube:truncated_url] Also match mail subscription links (#2214)

This commit is contained in:
Philipp Hagemeister 2014-01-23 16:14:54 +01:00
parent 8b769664c4
commit 975d35dbab

View File

@ -1805,7 +1805,10 @@ class YoutubeFavouritesIE(YoutubeBaseInfoExtractor):
class YoutubeTruncatedURLIE(InfoExtractor): class YoutubeTruncatedURLIE(InfoExtractor):
IE_NAME = 'youtube:truncated_url' IE_NAME = 'youtube:truncated_url'
IE_DESC = False # Do not list 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): def _real_extract(self, url):
raise ExtractorError( raise ExtractorError(