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

Code before:
        },
    }]

    def _real_extract(self, url):
        video_type, video_id = self._match_valid_url(url).groups()
        webpage = self._download_webpage(url, video_id)
        stream = traverse_obj(self._search_nextjs_data(webpage, video_id), ('props', 'pageProps', ('liveStreamData', 'stream')))[0]
        formats = self._extract_m3u8_formats(traverse_obj(stream, ('conf', 'hls')), video_id)

        return {
            'formats': formats,
            'id': video_id,
            'is_live': video_type == 'streamers',
            **traverse_obj(stream, ({
                'title': ('title', {str}),
                'series': ('game_name', {str}),
                'uploader_id': ('user_uid', {str}),
                'channel': ('alias', {str}),
                'description': ('description', {str}),
                'concurrent_view_count': ('viewersCurrent', {int}),
                'view_count': ('total_views', {int}),
                'thumbnail': ('thumbnail_url_small', {str}),
                'like_count': ('likes', {int}),
                'tags': ('tags', {list}),
                'timestamp': ('started_at', {int}),
                'modified_timestamp': ('updated_at', {int}),
                'comment_count': ('comments_count', {int}),
                'channel_follower_count': ('followers_count', {int}),
                'duration': ('duration', {int}),
            })),
        }


Review comment (suggestion):
Aren't these ms resolution?
```suggestion
                'timestamp': ('started_at', {int_or_none(scale=1000)}),
                'modified_timestamp': ('updated_at', {int_or_none(scale=1000)}),
```

Code after:
            'series': 'GTA 5',
            'timestamp': 1740612872,
            'modified_timestamp': 1740613037,
            'upload_date': '20250226',
            'modified_date': '20250226',
        },
    }]

    def _real_extract(self, url):
        video_type, video_id = self._match_valid_url(url).group('type', 'id')
        webpage = self._download_webpage(url, video_id)
        stream = traverse_obj(self._search_nextjs_data(webpage, video_id), (
            'props', 'pageProps', ('liveStreamData', 'stream'), {dict}, any, {require('stream info')}))

        return {
            'formats': self._extract_m3u8_formats(stream['conf']['hls'], video_id),
            'id': video_id,
            'is_live': video_type == 'streamers',
            **traverse_obj(stream, {
                'title': ('title', {str}),
                'series': ('game_name', {str}),
                'uploader_id': ('user_uid', {str}),
                'channel': ('alias', {str}),
                'description': ('description', {str}),
                'concurrent_view_count': ('viewersCurrent', {int_or_none}),
                'view_count': ('total_views', {int_or_none}),
                'thumbnail': ('thumbnail_url_small', {url_or_none}),
                'like_count': ('likes', {int_or_none}),
                'tags': ('tags', ..., {str}),
                'timestamp': ('started_at', {int_or_none(scale=1000)}),
                'modified_timestamp': ('updated_at', {int_or_none(scale=1000)}),
                'comment_count': ('comments_count', {int_or_none}),
                'channel_follower_count': ('followers_count', {int_or_none}),
                'duration': ('duration', {int_or_none}),
            }),
        }