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

Code before:
        )

        youtube_ie = YoutubeIE()
        youtube_ie.set_downloader(self._downloader)
        info = youtube_ie._real_extract(webpage_data['videoId'])

        # replace the YouTube metadata by the Digiview one
        info['title'] = webpage_data.get('titre') or info['title']
        info['description'] = webpage_data.get('description') or info['description']

        ffmpeg_args = []

        start_time = int_or_none(webpage_data.get('debut'))
        if start_time is not None and start_time != 0:
            ffmpeg_args.extend(['-ss', str(start_time)])

        end_time = int_or_none(webpage_data.get('fin'))
        if end_time is not None and end_time != info['duration']:
            ffmpeg_args.extend(['-t', str(end_time - (start_time or 0))])

        if ffmpeg_args and self._downloader:
            # cut the video if specified in the Digiview webpage
            ppargs = self._downloader.params.get('postprocessor_args')
            ppargs.setdefault('merger', []).extend(ffmpeg_args)

        return info


Review comment (suggestion):
Instead of passing custom ffmpeg args, just return a `section_start` and `section_end` time. Something like this should work:
```suggestion
        clip_id = video_data['videoId']
        return {
            '_type': 'url_transparent',
            'url': f'https://www.youtube.com/watch?v={clip_id}',
            'ie_key': YoutubeIE.ie_key(),
            'id': clip_id,
            **traverse_obj(video_data, {
                'section_start': ('debut', {int_or_none}),
                'section_end': ('fin', {int_or_none}),
                'description': ('description', {clean_html}),
                'title': ('titre', {str}),
                'thumbnail': ('vignette', {url_or_none}),
                'view_count': ('vues', {int_or_none}),
            }),
        }
```

Code after:
            'view_count': int,
            'comment_count': int,
            'channel': 'Blender',
            'license': 'Creative Commons Attribution license (reuse allowed)',
            'like_count': int,
            'tags': 'count:8',
            'live_status': 'not_live',
            'channel_id': 'UCSMOQeBJ2RAnuFungnQOxLg',
            'channel_follower_count': int,
            'channel_url': 'https://www.youtube.com/channel/UCSMOQeBJ2RAnuFungnQOxLg',
            'uploader_id': '@BlenderOfficial',
            'description': 'md5:8f3ed18a53a1bb36cbb3b70a15782fd0',
            'categories': ['Film & Animation'],
            'channel_is_verified': True,
            'heatmap': 'count:100',
            'section_end': 15,
            'uploader': 'Blender',
            'timestamp': 1415628355,
            'uploader_url': 'https://www.youtube.com/@BlenderOfficial',
            'age_limit': 0,
            'section_start': 10,
            'availability': 'public',
        },
    }]

    def _real_extract(self, url):
        video_id = self._match_id(url)
        video_data = self._download_json(
            'https://ladigitale.dev/digiview/inc/recuperer_video.php', video_id,
            data=urlencode_postdata({'id': video_id}))

        clip_id = video_data['videoId']
        return self.url_result(
            f'https://www.youtube.com/watch?v={clip_id}',
            YoutubeIE, video_id, url_transparent=True,
            **traverse_obj(video_data, {
                'section_start': ('debut', {int_or_none}),
                'section_end': ('fin', {int_or_none}),
                'description': ('description', {clean_html}, filter),
                'title': ('titre', {str}),
                'thumbnail': ('vignette', {url_or_none}),
                'view_count': ('vues', {int_or_none}),
            }),
        )