1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 18:34:32 +01:00

[youtube] Change test URLs from http to https

This commit is contained in:
stepshal 2016-09-17 21:48:20 +07:00 committed by Sergey M․
parent 493353c7fd
commit 2d3d29976b
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -369,7 +369,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
IE_NAME = 'youtube' IE_NAME = 'youtube'
_TESTS = [ _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': { 'info_dict': {
'id': 'BaW_jenozKc', 'id': 'BaW_jenozKc',
'ext': 'mp4', '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)', 'note': 'Test generic use_cipher_signature video (#897)',
'info_dict': { 'info_dict': {
'id': 'UxxajLWwzqY', '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', 'note': 'Use the first video ID in the URL',
'info_dict': { 'info_dict': {
'id': 'BaW_jenozKc', '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', 'note': '256k DASH audio (format 141) via DASH manifest',
'info_dict': { 'info_dict': {
'id': 'a9LDPn-MO4I', 'id': 'a9LDPn-MO4I',
@ -539,7 +539,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
}, },
# Normal age-gate video (No vevo, embed allowed) # Normal age-gate video (No vevo, embed allowed)
{ {
'url': 'http://youtube.com/watch?v=HtVdAasjOgU', 'url': 'https://youtube.com/watch?v=HtVdAasjOgU',
'info_dict': { 'info_dict': {
'id': 'HtVdAasjOgU', 'id': 'HtVdAasjOgU',
'ext': 'mp4', 'ext': 'mp4',
@ -555,7 +555,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
}, },
# Age-gate video with encrypted signature # Age-gate video with encrypted signature
{ {
'url': 'http://www.youtube.com/watch?v=6kLq3WMV1nU', 'url': 'https://www.youtube.com/watch?v=6kLq3WMV1nU',
'info_dict': { 'info_dict': {
'id': '6kLq3WMV1nU', 'id': '6kLq3WMV1nU',
'ext': 'mp4', 'ext': 'mp4',
@ -748,11 +748,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'skip': 'Not multifeed anymore', 'skip': 'Not multifeed anymore',
}, },
{ {
'url': 'http://vid.plus/FlRa-iH7PGw', 'url': 'https://vid.plus/FlRa-iH7PGw',
'only_matching': True, '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, 'only_matching': True,
}, },
{ {
@ -1846,7 +1846,7 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor):
'playlist_count': 2, 'playlist_count': 2,
}, { }, {
'note': 'embedded', '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, 'playlist_count': 4,
'info_dict': { 'info_dict': {
'title': 'JODA15', 'title': 'JODA15',
@ -1854,7 +1854,7 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor):
} }
}, { }, {
'note': 'Embedded SWF player', '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, 'playlist_count': 4,
'info_dict': { 'info_dict': {
'title': 'JODA7', 'title': 'JODA7',
@ -2156,7 +2156,7 @@ class YoutubeLiveIE(YoutubeBaseInfoExtractor):
IE_NAME = 'youtube:live' IE_NAME = 'youtube:live'
_TESTS = [{ _TESTS = [{
'url': 'http://www.youtube.com/user/TheYoungTurks/live', 'url': 'https://www.youtube.com/user/TheYoungTurks/live',
'info_dict': { 'info_dict': {
'id': 'a48o2S1cPoo', 'id': 'a48o2S1cPoo',
'ext': 'mp4', 'ext': 'mp4',
@ -2176,7 +2176,7 @@ class YoutubeLiveIE(YoutubeBaseInfoExtractor):
'skip_download': True, 'skip_download': True,
}, },
}, { }, {
'url': 'http://www.youtube.com/channel/UC1yBKRuGpC1tSM73A0ZjYjQ/live', 'url': 'https://www.youtube.com/channel/UC1yBKRuGpC1tSM73A0ZjYjQ/live',
'only_matching': True, 'only_matching': True,
}] }]
@ -2201,7 +2201,7 @@ class YoutubePlaylistsIE(YoutubePlaylistsBaseInfoExtractor):
IE_NAME = 'youtube:playlists' IE_NAME = 'youtube:playlists'
_TESTS = [{ _TESTS = [{
'url': 'http://www.youtube.com/user/ThirstForScience/playlists', 'url': 'https://www.youtube.com/user/ThirstForScience/playlists',
'playlist_mincount': 4, 'playlist_mincount': 4,
'info_dict': { 'info_dict': {
'id': 'ThirstForScience', 'id': 'ThirstForScience',
@ -2209,7 +2209,7 @@ class YoutubePlaylistsIE(YoutubePlaylistsBaseInfoExtractor):
}, },
}, { }, {
# with "Load more" button # 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, 'playlist_mincount': 70,
'info_dict': { 'info_dict': {
'id': 'igorkle1', 'id': 'igorkle1',
@ -2442,10 +2442,10 @@ class YoutubeTruncatedURLIE(InfoExtractor):
''' '''
_TESTS = [{ _TESTS = [{
'url': 'http://www.youtube.com/watch?annotation_id=annotation_3951667041', 'url': 'https://www.youtube.com/watch?annotation_id=annotation_3951667041',
'only_matching': True, 'only_matching': True,
}, { }, {
'url': 'http://www.youtube.com/watch?', 'url': 'https://www.youtube.com/watch?',
'only_matching': True, 'only_matching': True,
}, { }, {
'url': 'https://www.youtube.com/watch?x-yt-cl=84503534', '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 ' '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, ' 'character in most shells, so you want to put the URL in quotes, '
'like youtube-dl ' '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 .', ' or simply youtube-dl BaW_jenozKc .',
expected=True) expected=True)