mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 00:27:07 -05:00 
			
		
		
		
	[youtube] Change test URLs from http to https
This commit is contained in:
		@@ -369,7 +369,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
 | 
			
		||||
    IE_NAME = 'youtube'
 | 
			
		||||
    _TESTS = [
 | 
			
		||||
        {
 | 
			
		||||
            'url': 'http://www.youtube.com/watch?v=BaW_jenozKc&t=1s&end=9',
 | 
			
		||||
            'url': 'https://www.youtube.com/watch?v=BaW_jenozKc&t=1s&end=9',
 | 
			
		||||
            'info_dict': {
 | 
			
		||||
                'id': 'BaW_jenozKc',
 | 
			
		||||
                'ext': 'mp4',
 | 
			
		||||
@@ -389,7 +389,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            'url': 'http://www.youtube.com/watch?v=UxxajLWwzqY',
 | 
			
		||||
            'url': 'https://www.youtube.com/watch?v=UxxajLWwzqY',
 | 
			
		||||
            'note': 'Test generic use_cipher_signature video (#897)',
 | 
			
		||||
            'info_dict': {
 | 
			
		||||
                'id': 'UxxajLWwzqY',
 | 
			
		||||
@@ -443,7 +443,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            'url': 'http://www.youtube.com/watch?v=BaW_jenozKc&v=UxxajLWwzqY',
 | 
			
		||||
            'url': 'https://www.youtube.com/watch?v=BaW_jenozKc&v=UxxajLWwzqY',
 | 
			
		||||
            'note': 'Use the first video ID in the URL',
 | 
			
		||||
            'info_dict': {
 | 
			
		||||
                'id': 'BaW_jenozKc',
 | 
			
		||||
@@ -465,7 +465,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
 | 
			
		||||
            },
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            'url': 'http://www.youtube.com/watch?v=a9LDPn-MO4I',
 | 
			
		||||
            'url': 'https://www.youtube.com/watch?v=a9LDPn-MO4I',
 | 
			
		||||
            'note': '256k DASH audio (format 141) via DASH manifest',
 | 
			
		||||
            'info_dict': {
 | 
			
		||||
                'id': 'a9LDPn-MO4I',
 | 
			
		||||
@@ -539,7 +539,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
 | 
			
		||||
        },
 | 
			
		||||
        # Normal age-gate video (No vevo, embed allowed)
 | 
			
		||||
        {
 | 
			
		||||
            'url': 'http://youtube.com/watch?v=HtVdAasjOgU',
 | 
			
		||||
            'url': 'https://youtube.com/watch?v=HtVdAasjOgU',
 | 
			
		||||
            'info_dict': {
 | 
			
		||||
                'id': 'HtVdAasjOgU',
 | 
			
		||||
                'ext': 'mp4',
 | 
			
		||||
@@ -555,7 +555,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
 | 
			
		||||
        },
 | 
			
		||||
        # Age-gate video with encrypted signature
 | 
			
		||||
        {
 | 
			
		||||
            'url': 'http://www.youtube.com/watch?v=6kLq3WMV1nU',
 | 
			
		||||
            'url': 'https://www.youtube.com/watch?v=6kLq3WMV1nU',
 | 
			
		||||
            'info_dict': {
 | 
			
		||||
                'id': '6kLq3WMV1nU',
 | 
			
		||||
                'ext': 'mp4',
 | 
			
		||||
@@ -748,11 +748,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
 | 
			
		||||
            'skip': 'Not multifeed anymore',
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            'url': 'http://vid.plus/FlRa-iH7PGw',
 | 
			
		||||
            'url': 'https://vid.plus/FlRa-iH7PGw',
 | 
			
		||||
            'only_matching': True,
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            'url': 'http://zwearz.com/watch/9lWxNJF-ufM/electra-woman-dyna-girl-official-trailer-grace-helbig.html',
 | 
			
		||||
            'url': 'https://zwearz.com/watch/9lWxNJF-ufM/electra-woman-dyna-girl-official-trailer-grace-helbig.html',
 | 
			
		||||
            'only_matching': True,
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
@@ -1846,7 +1846,7 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor):
 | 
			
		||||
        'playlist_count': 2,
 | 
			
		||||
    }, {
 | 
			
		||||
        'note': 'embedded',
 | 
			
		||||
        'url': 'http://www.youtube.com/embed/videoseries?list=PL6IaIsEjSbf96XFRuNccS_RuEXwNdsoEu',
 | 
			
		||||
        'url': 'https://www.youtube.com/embed/videoseries?list=PL6IaIsEjSbf96XFRuNccS_RuEXwNdsoEu',
 | 
			
		||||
        'playlist_count': 4,
 | 
			
		||||
        'info_dict': {
 | 
			
		||||
            'title': 'JODA15',
 | 
			
		||||
@@ -1854,7 +1854,7 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor):
 | 
			
		||||
        }
 | 
			
		||||
    }, {
 | 
			
		||||
        'note': 'Embedded SWF player',
 | 
			
		||||
        'url': 'http://www.youtube.com/p/YN5VISEtHet5D4NEvfTd0zcgFk84NqFZ?hl=en_US&fs=1&rel=0',
 | 
			
		||||
        'url': 'https://www.youtube.com/p/YN5VISEtHet5D4NEvfTd0zcgFk84NqFZ?hl=en_US&fs=1&rel=0',
 | 
			
		||||
        'playlist_count': 4,
 | 
			
		||||
        'info_dict': {
 | 
			
		||||
            'title': 'JODA7',
 | 
			
		||||
@@ -2156,7 +2156,7 @@ class YoutubeLiveIE(YoutubeBaseInfoExtractor):
 | 
			
		||||
    IE_NAME = 'youtube:live'
 | 
			
		||||
 | 
			
		||||
    _TESTS = [{
 | 
			
		||||
        'url': 'http://www.youtube.com/user/TheYoungTurks/live',
 | 
			
		||||
        'url': 'https://www.youtube.com/user/TheYoungTurks/live',
 | 
			
		||||
        'info_dict': {
 | 
			
		||||
            'id': 'a48o2S1cPoo',
 | 
			
		||||
            'ext': 'mp4',
 | 
			
		||||
@@ -2176,7 +2176,7 @@ class YoutubeLiveIE(YoutubeBaseInfoExtractor):
 | 
			
		||||
            'skip_download': True,
 | 
			
		||||
        },
 | 
			
		||||
    }, {
 | 
			
		||||
        'url': 'http://www.youtube.com/channel/UC1yBKRuGpC1tSM73A0ZjYjQ/live',
 | 
			
		||||
        'url': 'https://www.youtube.com/channel/UC1yBKRuGpC1tSM73A0ZjYjQ/live',
 | 
			
		||||
        'only_matching': True,
 | 
			
		||||
    }]
 | 
			
		||||
 | 
			
		||||
@@ -2201,7 +2201,7 @@ class YoutubePlaylistsIE(YoutubePlaylistsBaseInfoExtractor):
 | 
			
		||||
    IE_NAME = 'youtube:playlists'
 | 
			
		||||
 | 
			
		||||
    _TESTS = [{
 | 
			
		||||
        'url': 'http://www.youtube.com/user/ThirstForScience/playlists',
 | 
			
		||||
        'url': 'https://www.youtube.com/user/ThirstForScience/playlists',
 | 
			
		||||
        'playlist_mincount': 4,
 | 
			
		||||
        'info_dict': {
 | 
			
		||||
            'id': 'ThirstForScience',
 | 
			
		||||
@@ -2209,7 +2209,7 @@ class YoutubePlaylistsIE(YoutubePlaylistsBaseInfoExtractor):
 | 
			
		||||
        },
 | 
			
		||||
    }, {
 | 
			
		||||
        # with "Load more" button
 | 
			
		||||
        'url': 'http://www.youtube.com/user/igorkle1/playlists?view=1&sort=dd',
 | 
			
		||||
        'url': 'https://www.youtube.com/user/igorkle1/playlists?view=1&sort=dd',
 | 
			
		||||
        'playlist_mincount': 70,
 | 
			
		||||
        'info_dict': {
 | 
			
		||||
            'id': 'igorkle1',
 | 
			
		||||
@@ -2442,10 +2442,10 @@ class YoutubeTruncatedURLIE(InfoExtractor):
 | 
			
		||||
    '''
 | 
			
		||||
 | 
			
		||||
    _TESTS = [{
 | 
			
		||||
        'url': 'http://www.youtube.com/watch?annotation_id=annotation_3951667041',
 | 
			
		||||
        'url': 'https://www.youtube.com/watch?annotation_id=annotation_3951667041',
 | 
			
		||||
        'only_matching': True,
 | 
			
		||||
    }, {
 | 
			
		||||
        'url': 'http://www.youtube.com/watch?',
 | 
			
		||||
        'url': 'https://www.youtube.com/watch?',
 | 
			
		||||
        'only_matching': True,
 | 
			
		||||
    }, {
 | 
			
		||||
        'url': 'https://www.youtube.com/watch?x-yt-cl=84503534',
 | 
			
		||||
@@ -2466,7 +2466,7 @@ class YoutubeTruncatedURLIE(InfoExtractor):
 | 
			
		||||
            'Did you forget to quote the URL? Remember that & is a meta '
 | 
			
		||||
            'character in most shells, so you want to put the URL in quotes, '
 | 
			
		||||
            'like  youtube-dl '
 | 
			
		||||
            '"http://www.youtube.com/watch?feature=foo&v=BaW_jenozKc" '
 | 
			
		||||
            '"https://www.youtube.com/watch?feature=foo&v=BaW_jenozKc" '
 | 
			
		||||
            ' or simply  youtube-dl BaW_jenozKc  .',
 | 
			
		||||
            expected=True)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user