Repository: yt-dlp/yt-dlp
File: yt_dlp/extractor/skyit.py (Python)

Code before:
        'params': {'skip_download': 'm3u8'},
    }]
    _DOMAIN = 'mtv8'


class TV8ItLiveIE(SkyItBaseIE):
    IE_DESC = 'TV8 Live'
    _VALID_URL = r'https?://(?:www\.)?tv8\.it/streaming'
    _TESTS = [{
        'url': 'https://tv8.it/streaming',
        'info_dict': {
            'id': 'tv8',
            'ext': 'mp4',
            'title': str,
            'description': str,
            'is_live': True,
            'live_status': 'is_live',
        },
    }]

    def _real_extract(self, url):
        video_id = 'tv8'
        livestream = self._download_json(
            'https://apid.sky.it/vdp/v1/getLivestream?id=7', video_id, 'Downloading manifest json info')
        streaming = self._download_json(
            'https://tv8.it/api/getStreaming', video_id, 'Downloading streaming data', fatal=False)

        return {
            **self._parse_video(livestream, video_id),
            **traverse_obj(streaming, ('info', {
                'title': ('title', 'text', {str}),
                'description': ('description', 'html', {clean_html}),
            })),
        }


class TV8ItPlaylistIE(InfoExtractor):
    IE_DESC = 'TV8 Playlist'
    _VALID_URL = r'https?://(?:www\.)?tv8\.it/(?!video)[^/#?]+/(?P<id>[^/#?]+)'
    _TESTS = [{
        'url': 'https://tv8.it/intrattenimento/tv8-gialappas-night',
        'playlist_mincount': 32,
        'info_dict': {
            'id': 'tv8-gialappas-night',
            'title': 'Tv8 Gialappa\'s Night',
            'description': 'md5:c876039d487d9cf40229b768872718ed',
            'thumbnail': r're:^https://static\.sky\.it/.+\.(png|jpe?g|webp)',
        },
    }, {
        'url': 'https://tv8.it/sport/uefa-europa-league',
        'playlist_mincount': 11,

Review comment (suggestion):
```suggestion
        livestream = self._download_json(
            'https://apid.sky.it/vdp/v1/getLivestream', video_id,
            'Downloading manifest JSON', query={'id': '7'})
        metadata = self._download_json('https://tv8.it/api/getStreaming', video_id, fatal=False)
```

Code after:
        'params': {'skip_download': 'm3u8'},
    }]
    _DOMAIN = 'mtv8'


class TV8ItLiveIE(SkyItBaseIE):
    IE_NAME = 'tv8.it:live'
    IE_DESC = 'TV8 Live'
    _VALID_URL = r'https?://(?:www\.)?tv8\.it/streaming'
    _TESTS = [{
        'url': 'https://tv8.it/streaming',
        'info_dict': {
            'id': 'tv8',
            'ext': 'mp4',
            'title': str,
            'description': str,
            'is_live': True,
            'live_status': 'is_live',
        },
    }]

    def _real_extract(self, url):
        video_id = 'tv8'
        livestream = self._download_json(
            'https://apid.sky.it/vdp/v1/getLivestream', video_id,
            'Downloading manifest JSON', query={'id': '7'})
        metadata = self._download_json('https://tv8.it/api/getStreaming', video_id, fatal=False)

        return {
            **self._parse_video(livestream, video_id),
            **traverse_obj(metadata, ('info', {
                'title': ('title', 'text', {str}),
                'description': ('description', 'html', {clean_html}),
            })),
        }


class TV8ItPlaylistIE(InfoExtractor):
    IE_NAME = 'tv8.it:playlist'
    IE_DESC = 'TV8 Playlist'
    _VALID_URL = r'https?://(?:www\.)?tv8\.it/(?!video)[^/#?]+/(?P<id>[^/#?]+)'
    _TESTS = [{
        'url': 'https://tv8.it/intrattenimento/tv8-gialappas-night',
        'playlist_mincount': 32,
        'info_dict': {
            'id': 'tv8-gialappas-night',
            'title': 'Tv8 Gialappa\'s Night',
            'description': 'md5:c876039d487d9cf40229b768872718ed',
            'thumbnail': r're:https://static\.sky\.it/.+\.(png|jpe?g|webp)',
        },
    }, {