mirror of
https://codeberg.org/polarisfm/youtube-dl.git
synced 2024-12-23 16:22:30 +00:00
[youtube:shows] Use https
This commit is contained in:
parent
8801255d7d
commit
4003bd82b0
1 changed files with 2 additions and 2 deletions
|
@ -1835,7 +1835,7 @@ class YoutubeShowIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://www\.youtube\.com/show/(?P<id>[^?#]*)'
|
_VALID_URL = r'https?://www\.youtube\.com/show/(?P<id>[^?#]*)'
|
||||||
IE_NAME = 'youtube:show'
|
IE_NAME = 'youtube:show'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'http://www.youtube.com/show/airdisasters',
|
'url': 'https://www.youtube.com/show/airdisasters',
|
||||||
'playlist_mincount': 5,
|
'playlist_mincount': 5,
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'airdisasters',
|
'id': 'airdisasters',
|
||||||
|
@ -1847,7 +1847,7 @@ class YoutubeShowIE(InfoExtractor):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
playlist_id = mobj.group('id')
|
playlist_id = mobj.group('id')
|
||||||
webpage = self._download_webpage(
|
webpage = self._download_webpage(
|
||||||
'http://www.youtube.com/show/%s/playlists' % playlist_id, playlist_id, 'Downloading show webpage')
|
'https://www.youtube.com/show/%s/playlists' % playlist_id, playlist_id, 'Downloading show webpage')
|
||||||
# There's one playlist for each season of the show
|
# There's one playlist for each season of the show
|
||||||
m_seasons = list(re.finditer(r'href="(/playlist\?list=.*?)"', webpage))
|
m_seasons = list(re.finditer(r'href="(/playlist\?list=.*?)"', webpage))
|
||||||
self.to_screen('%s: Found %s seasons' % (playlist_id, len(m_seasons)))
|
self.to_screen('%s: Found %s seasons' % (playlist_id, len(m_seasons)))
|
||||||
|
|
Loading…
Reference in a new issue