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

Code before:
            r'''(?sx)
                (?:
                    </h1>|
                    <div[^>]+class="[^"]*?(?:title-zone-diffusion|heading-zone-(?:wrapper|player-button))[^"]*?"[^>]*>
                ).*?
                (<button[^>]+data-(?:url|asset-source)="[^"]+"[^>]+>)
            ''',
            webpage, 'video data'))

        title = self._html_search_regex(
            r'(?s)<h1[^>]*itemprop="[^"]*name[^"]*"[^>]*>(.+?)</h1>',
            webpage, 'title', default=self._og_search_title(webpage))
        description = self._html_search_regex(
            r'(?s)<div[^>]+class="intro"[^>]*>.*?<h2>(.+?)</h2>',
            webpage, 'description', default=None)

        playlist_data = self._search_regex(
            r'''(?sx)
                <div[^>]+class="[^"]*?podcast-list[^"?]*?"[^>]*>
                (.*?)
                <div[^>]+class="[^"]*?see-more-anchor[^"]*?">
            ''',
            webpage, 'playlist data', fatal=False, default=None)

        # page has playlist
        if (playlist_data is not None):
            entries = [
                self.url_result(video_url, None, video_id, video_title)
                for video_url, video_id, video_title in re.findall(
                    r'data-url="([^"]+)"[^>]*data-diffusion-path="([^"]+)"[^>]*data-diffusion-title="([^"]+)"',
                    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,

Review comment (suggestion):
```suggestion
        if playlist_data is not None:
```

Code after:
            'vcodec': 'none',
            'duration': 3569,
        },
    }, {
        # no thumbnail
        'url': 'https://www.franceculture.fr/emissions/la-recherche-montre-en-main/la-recherche-montre-en-main-du-mercredi-10-octobre-2018',
        'only_matching': True,
    }]

    def _real_extract(self, url):
        display_id = self._match_id(url)
        webpage = self._download_webpage(url, display_id)

        info = {
            'id': display_id,
            'title': self._html_search_regex(
                r'(?s)<h1[^>]*itemprop="[^"]*name[^"]*"[^>]*>(.+?)</h1>',
                webpage, 'title', default=self._og_search_title(webpage)),
            'description': self._html_search_regex(
                r'(?s)<div[^>]+class="excerpt"[^>]*>(.*?)</div>', webpage, 'description', default=None),
            'thumbnail': self._og_search_thumbnail(webpage),
            'uploader': self._html_search_regex(
                r'(?s)<span class="author">(.*?)</span>', webpage, 'uploader', default=None),
            'upload_date': unified_strdate(self._html_search_regex(
                r'(?s)class="teaser-text-date".*?(\d{2}/\d{2}/\d{4})', webpage, 'date', default=None)),
        }

        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'],