projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
493353c
)
[youtube] Change test URLs from http to https
author
stepshal
<nessento@openmailbox.org>
Sat, 17 Sep 2016 14:48:20 +0000
(21:48 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 25 Sep 2016 10:45:24 +0000
(17:45 +0700)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 5ca903825243f4427ae6a6e5819a9c00376f7510..f86823112297d40aeb9e847d182f905bcf7afb76 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-369,7
+369,7
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
IE_NAME = 'youtube'
_TESTS = [
{
IE_NAME = 'youtube'
_TESTS = [
{
- 'url': 'http://www.youtube.com/watch?v=BaW_jenozKc&t=1s&end=9',
+ 'url': 'http
s
://www.youtube.com/watch?v=BaW_jenozKc&t=1s&end=9',
'info_dict': {
'id': 'BaW_jenozKc',
'ext': 'mp4',
'info_dict': {
'id': 'BaW_jenozKc',
'ext': 'mp4',
@@
-389,7
+389,7
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
}
},
{
}
},
{
- 'url': 'http://www.youtube.com/watch?v=UxxajLWwzqY',
+ 'url': 'http
s
://www.youtube.com/watch?v=UxxajLWwzqY',
'note': 'Test generic use_cipher_signature video (#897)',
'info_dict': {
'id': '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': 'http
s
://www.youtube.com/watch?v=BaW_jenozKc&v=UxxajLWwzqY',
'note': 'Use the first video ID in the URL',
'info_dict': {
'id': 'BaW_jenozKc',
'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': 'http
s
://www.youtube.com/watch?v=a9LDPn-MO4I',
'note': '256k DASH audio (format 141) via DASH manifest',
'info_dict': {
'id': '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)
{
},
# Normal age-gate video (No vevo, embed allowed)
{
- 'url': 'http://youtube.com/watch?v=HtVdAasjOgU',
+ 'url': 'http
s
://youtube.com/watch?v=HtVdAasjOgU',
'info_dict': {
'id': 'HtVdAasjOgU',
'ext': 'mp4',
'info_dict': {
'id': 'HtVdAasjOgU',
'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': 'http
s
://www.youtube.com/watch?v=6kLq3WMV1nU',
'info_dict': {
'id': '6kLq3WMV1nU',
'ext': 'mp4',
'info_dict': {
'id': '6kLq3WMV1nU',
'ext': 'mp4',
@@
-748,11
+748,11
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
'skip': 'Not multifeed anymore',
},
{
'skip': 'Not multifeed anymore',
},
{
- 'url': 'http://vid.plus/FlRa-iH7PGw',
+ 'url': 'http
s
://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': 'http
s
://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,
}, {
'note': 'embedded',
'playlist_count': 2,
}, {
'note': 'embedded',
- 'url': 'http://www.youtube.com/embed/videoseries?list=PL6IaIsEjSbf96XFRuNccS_RuEXwNdsoEu',
+ 'url': 'http
s
://www.youtube.com/embed/videoseries?list=PL6IaIsEjSbf96XFRuNccS_RuEXwNdsoEu',
'playlist_count': 4,
'info_dict': {
'title': 'JODA15',
'playlist_count': 4,
'info_dict': {
'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': 'http
s
://www.youtube.com/p/YN5VISEtHet5D4NEvfTd0zcgFk84NqFZ?hl=en_US&fs=1&rel=0',
'playlist_count': 4,
'info_dict': {
'title': 'JODA7',
'playlist_count': 4,
'info_dict': {
'title': 'JODA7',
@@
-2156,7
+2156,7
@@
class YoutubeLiveIE(YoutubeBaseInfoExtractor):
IE_NAME = 'youtube:live'
_TESTS = [{
IE_NAME = 'youtube:live'
_TESTS = [{
- 'url': 'http://www.youtube.com/user/TheYoungTurks/live',
+ 'url': 'http
s
://www.youtube.com/user/TheYoungTurks/live',
'info_dict': {
'id': 'a48o2S1cPoo',
'ext': 'mp4',
'info_dict': {
'id': 'a48o2S1cPoo',
'ext': 'mp4',
@@
-2176,7
+2176,7
@@
class YoutubeLiveIE(YoutubeBaseInfoExtractor):
'skip_download': True,
},
}, {
'skip_download': True,
},
}, {
- 'url': 'http://www.youtube.com/channel/UC1yBKRuGpC1tSM73A0ZjYjQ/live',
+ 'url': 'http
s
://www.youtube.com/channel/UC1yBKRuGpC1tSM73A0ZjYjQ/live',
'only_matching': True,
}]
'only_matching': True,
}]
@@
-2201,7
+2201,7
@@
class YoutubePlaylistsIE(YoutubePlaylistsBaseInfoExtractor):
IE_NAME = 'youtube:playlists'
_TESTS = [{
IE_NAME = 'youtube:playlists'
_TESTS = [{
- 'url': 'http://www.youtube.com/user/ThirstForScience/playlists',
+ 'url': 'http
s
://www.youtube.com/user/ThirstForScience/playlists',
'playlist_mincount': 4,
'info_dict': {
'id': 'ThirstForScience',
'playlist_mincount': 4,
'info_dict': {
'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': 'http
s
://www.youtube.com/user/igorkle1/playlists?view=1&sort=dd',
'playlist_mincount': 70,
'info_dict': {
'id': 'igorkle1',
'playlist_mincount': 70,
'info_dict': {
'id': 'igorkle1',
@@
-2442,10
+2442,10
@@
class YoutubeTruncatedURLIE(InfoExtractor):
'''
_TESTS = [{
'''
_TESTS = [{
- 'url': 'http://www.youtube.com/watch?annotation_id=annotation_3951667041',
+ 'url': 'http
s
://www.youtube.com/watch?annotation_id=annotation_3951667041',
'only_matching': True,
}, {
'only_matching': True,
}, {
- 'url': 'http://www.youtube.com/watch?',
+ 'url': 'http
s
://www.youtube.com/watch?',
'only_matching': True,
}, {
'url': 'https://www.youtube.com/watch?x-yt-cl=84503534',
'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 '
'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" '
+ '"http
s
://www.youtube.com/watch?feature=foo&v=BaW_jenozKc" '
' or simply youtube-dl BaW_jenozKc .',
expected=True)
' or simply youtube-dl BaW_jenozKc .',
expected=True)