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

Code before:
                "uploader_id": "ESNEWS",
                "uploader_url": "http://www.youtube.com/user/ESNEWS",
                "like_count": int,
                "channel_id": "UCI-Oq7oFGakzSzHFlTtsUsQ",
                "channel": "ESNEWS",
                "view_count": int,
                "duration": 225,
                "live_status": "not_live",
                "thumbnail": "https://i.ytimg.com/vi_webp/Dddb6IGe-ws/maxresdefault.webp",
                "channel_url": "https://www.youtube.com/channel/UCI-Oq7oFGakzSzHFlTtsUsQ",
                "channel_follower_count": int,
                "playable_in_embed": True,
                "categories": ["Sports"],
                "age_limit": 0,
                "tags": [
                    "elie seckbach",
                    "esnews",
                    "boxing",
                    "mma",
                    "sports interviews",
                    "es news",
                    "boxing news",
                    "mma news",
                    "boxing interviews",
                    "mma interviews",
                ],
                "availability": "public",
            },
        },
        {
            "url": "https://www.tmz.com/2020/11/19/conor-mcgregor-dustin-poirier-contract-fight-ufc-257-fight-island/",
            "info_dict": {
                "id": "1329450007125225473",
                "ext": "mp4",
                "title": "The Mac Life - BREAKING: Conor McGregor (@thenotoriousmma) has signed his bout agreement for his rematch with Dustin Poirier for January 23.",
                "uploader": "The Mac Life",
                "description": "md5:56e6009bbc3d12498e10d08a8e1f1c69",
                "upload_date": "20201119",
                "uploader_id": "TheMacLife",
                "timestamp": 1605800556,
                "thumbnail": "https://pbs.twimg.com/media/EnMmfT8XYAExgxJ.jpg?name=small",
                "like_count": int,
                "duration": 11.812,
                "uploader_url": "https://twitter.com/TheMacLife",
                "age_limit": 0,
                "repost_count": int,
                "tags": [],
                "comment_count": int,
            },
        },
    ]

Review comment (suggestion):
```suggestion
                "tags": "count:10",
```

Code after:
                "uploader_id": "ESNEWS",
                "uploader_url": "http://www.youtube.com/user/ESNEWS",
                "like_count": int,
                "channel_id": "UCI-Oq7oFGakzSzHFlTtsUsQ",
                "channel": "ESNEWS",
                "view_count": int,
                "duration": 225,
                "live_status": "not_live",
                "thumbnail": "https://i.ytimg.com/vi_webp/Dddb6IGe-ws/maxresdefault.webp",
                "channel_url": "https://www.youtube.com/channel/UCI-Oq7oFGakzSzHFlTtsUsQ",
                "channel_follower_count": int,
                "playable_in_embed": True,
                "categories": ["Sports"],
                "age_limit": 0,
                "tags": "count:10",
                "availability": "public",
            },
        },
        {
            "url": "https://www.tmz.com/2020/11/19/conor-mcgregor-dustin-poirier-contract-fight-ufc-257-fight-island/",
            "info_dict": {
                "id": "1329450007125225473",
                "ext": "mp4",
                "title": "The Mac Life - BREAKING: Conor McGregor (@thenotoriousmma) has signed his bout agreement for his rematch with Dustin Poirier for January 23.",
                "uploader": "The Mac Life",
                "description": "md5:56e6009bbc3d12498e10d08a8e1f1c69",
                "upload_date": "20201119",
                "uploader_id": "TheMacLife",
                "timestamp": 1605800556,
                "thumbnail": "https://pbs.twimg.com/media/EnMmfT8XYAExgxJ.jpg?name=small",
                "like_count": int,
                "duration": 11.812,
                "uploader_url": "https://twitter.com/TheMacLife",
                "age_limit": 0,
                "repost_count": int,
                "tags": [],
                "comment_count": int,
            },
        },
    ]

    def _real_extract(self, url):
        webpage = self._download_webpage(url, url)
        jsonld = self._search_json_ld(webpage, url)
        if not jsonld or "url" not in jsonld:
            # try to extract from YouTube Player API
            # see https://developers.google.com/youtube/iframe_api_reference#Video_Queueing_Functions
            match_obj = re.search(r'\.cueVideoById\(\s*(?P<quote>[\'"])(?P<id>.*?)(?P=quote)', webpage)
            if match_obj:
                res = self.url_result(match_obj.group("id"))
                return res