diff options
author | Philipp Hagemeister <[email protected]> | 2014-01-23 16:14:54 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-01-23 16:14:54 +0100 |
commit | 975d35dbab002fbe65172a4a764b6d10787f9eb6 (patch) | |
tree | c03a8a1c1aa7137224df76923fb0cd0d6d424bee | |
parent | 8b769664c47fb0aa4ceeb2341c61cf72d757c524 (diff) | |
download | youtube-dl-975d35dbab002fbe65172a4a764b6d10787f9eb6.tar.gz youtube-dl-975d35dbab002fbe65172a4a764b6d10787f9eb6.zip |
[youtube:truncated_url] Also match mail subscription links (#2214)
-rw-r--r-- | youtube_dl/extractor/youtube.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 175763309..6deb56447 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1805,7 +1805,10 @@ class YoutubeFavouritesIE(YoutubeBaseInfoExtractor): 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( |