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

Code before:
            if zones[z].get('moduleName') in {'INTL_M304', 'INTL_M209'}:
                info_url = zones[z].get('feed')
            if zones[z].get('moduleName') in {'INTL_M308', 'INTL_M317'}:
                playlist_url = playlist_url or zones[z].get('feed')
            if zones[z].get('moduleName') in {'INTL_M300'}:
                current_url = current_url or zones[z].get('feed')

        if not info_url:
            raise ExtractorError('No info found')

        if video_id == parent_id:
            video_id = self._search_regex(
                r'([^\/]+)/[^\/]+$', info_url, 'video_id')

        info = self._download_json(info_url, video_id, 'Show infos')
        info = try_get(info, lambda x: x['result']['data'], dict)
        title = title or try_get(
            info, (
                lambda x: x['title'],
                lambda x: x['headline']),
            compat_str)
        description = try_get(info, lambda x: x['content'], compat_str)

        if current_url:
            season = try_get(
                self._download_json(playlist_url, video_id, 'Seasons infos'),
                lambda x: x['result']['data'], dict)
            current = try_get(
                season, lambda x: x['currentSeason'], compat_str)
            seasons = try_get(
                season, lambda x: x['seasons'], list) or []

            if current in [s.get('eTitle') for s in seasons]:
                playlist_url = current_url

        title = re.sub(
            r'[-|]\s*(?:mtv\s*italia|programma|playlist)',
            '', title, flags=re.IGNORECASE).strip()

        return self.playlist_result(
            self._get_entries(title, playlist_url),
            video_id, title, description)


Review comment (suggestion):
```suggestion
                self._download_json(playlist_url, video_id, 'Seasons info'),
```

Code after:
            if z.get('moduleName') in ('INTL_M308', 'INTL_M317'):
                playlist_url = playlist_url or z.get('feed')
            if z.get('moduleName') in ('INTL_M300',):
                current_url = current_url or z.get('feed')

        if not info_url:
            raise ExtractorError('No info found')

        if video_id == parent_id:
            video_id = self._search_regex(
                r'([^\/]+)/[^\/]+$', info_url, 'video_id')

        info = self._download_json(info_url, video_id, 'Show infos')
        info = try_get(info, lambda x: x['result']['data'], dict)
        title = title or try_get(
            info, (
                lambda x: x['title'],
                lambda x: x['headline']),
            compat_str)
        description = try_get(info, lambda x: x['content'], compat_str)

        if current_url:
            season = try_get(
                self._download_json(playlist_url, video_id, 'Seasons info'),
                lambda x: x['result']['data'], dict)
            current = try_get(
                season, lambda x: x['currentSeason'], compat_str)
            seasons = try_get(
                season, lambda x: x['seasons'], list) or []

            if current in [s.get('eTitle') for s in seasons]:
                playlist_url = current_url

        title = re.sub(
            r'[-|]\s*(?:mtv\s*italia|programma|playlist)',
            '', title, flags=re.IGNORECASE).strip()

        return self.playlist_result(
            self._get_entries(title, playlist_url),
            video_id, title, description)