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

Code before:
                    playlist_data)
            ]

            return self.playlist_result(entries, display_id, title, description)

        video_url = traverse_obj(video_data, 'data-url', 'data-asset-source')

        thumbnail = self._search_regex(
            r'(?s)<figure[^>]+itemtype="https://schema.org/ImageObject"[^>]*>.*?<img[^>]+(?:data-dejavu-)?src="([^"]+)"',
            webpage, 'thumbnail', default=None)
        upload_date = self._search_regex(
            r'(?s)"datePublished":\s*"(\d{4}-\d{2}-\d{2})',
            webpage, 'date', default=None)

        ext = determine_ext(video_url.lower())

        return {
            'id': display_id,
            'display_id': display_id,
            'url': video_url,
            'title': title,
            'description': description,
            'thumbnail': thumbnail,
            'ext': ext,
            'vcodec': 'none' if ext == 'mp3' else None,
            'upload_date': upload_date.replace("-", "") if upload_date is not None else None,
            'duration': int_or_none(video_data.get('data-duration')),
        }


Review comment (suggestion):
```suggestion
            'upload_date': upload_date.replace('-', '') if upload_date is not None else None,
```

Code after:

        playlist_data = self._search_regex(
            r'''(?sx)
                <section[^>]+data-xiti-place="[^"]*?liste_episodes[^"?]*?"[^>]*>
                (.*?)
                </section>
            ''',
            webpage, 'playlist data', fatal=False, default=None)

        if playlist_data:
            entries = []
            for item, item_description in re.findall(
                    r'(?s)(<button[^<]*class="[^"]*replay-button[^>]*>).*?<p[^>]*class="[^"]*teaser-text-chapo[^>]*>(.*?)</p>',
                    playlist_data):

                item_attributes = extract_attributes(item)
                entries.append({
                    'id': item_attributes.get('data-emission-uuid'),
                    'url': item_attributes.get('data-url'),
                    'title': item_attributes.get('data-diffusion-title'),
                    'duration': int_or_none(traverse_obj(item_attributes, 'data-duration-seconds', 'data-duration-seconds')),
                    'description': item_description,
                    'timestamp': int_or_none(item_attributes.get('data-start-time')),
                    'thumbnail': info['thumbnail'],
                    'uploader': info['uploader'],
                })

            return {
                '_type': 'playlist',
                'entries': entries,
                **info
            }

        video_data = extract_attributes(self._search_regex(
            r'''(?sx)
                (?:
                    </h1>|
                    <div[^>]+class="[^"]*?(?:title-zone-diffusion|heading-zone-(?:wrapper|player-button))[^"]*?"[^>]*>
                ).*?
                (<button[^>]+data-(?:url|asset-source)="[^"]+"[^>]+>)
            ''',
            webpage, 'video data'))
        video_url = traverse_obj(video_data, 'data-url', 'data-asset-source')
        ext = determine_ext(video_url.lower())

        return {
            'display_id': display_id,
            'url': video_url,
            'ext': ext,
            'vcodec': 'none' if ext == 'mp3' else None,
            'duration': int_or_none(video_data.get('data-duration')),