'playlist_mincount': 200,
}, {
'url': 'https://tunein.com/embed/player/p191660/',
- 'only_matching': True
+ 'only_matching': True,
}, {
'url': 'https://tunein.com/podcasts/World-News/BBC-News-p14/',
'info_dict': {
urlh = self._request_webpage(
url, redirect_id, note='Downloading redirect page')
- url = urlh.geturl()
+ url = urlh.url
url_parsed = urllib.parse.urlparse(url)
if url_parsed.port == 443:
- url = url_parsed._replace(netloc=url_parsed.hostname).geturl()
+ url = url_parsed._replace(netloc=url_parsed.hostname).url
- self.to_screen('Following redirect: %s' % url)
+ self.to_screen(f'Following redirect: {url}')
return self.url_result(url)