aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-11-07 02:29:58 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-11-07 02:32:36 +0530
commit46d09f87072e112c363f4a573966d8e48a788562 (patch)
treec945b8e19bf82a19137008e02d8a1aee6f41ca8b /yt_dlp/extractor/common.py
parentdb4678e448d6e7da9743f4028c94b540fcafc528 (diff)
downloadhypervideo-pre-46d09f87072e112c363f4a573966d8e48a788562.tar.lz
hypervideo-pre-46d09f87072e112c363f4a573966d8e48a788562.tar.xz
hypervideo-pre-46d09f87072e112c363f4a573966d8e48a788562.zip
[cleanup] Lint and misc cleanup
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 84a2b95af..20ed52216 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -3725,7 +3725,8 @@ class InfoExtractor:
if not cls.working():
desc += ' (**Currently broken**)' if markdown else ' (Currently broken)'
- name = f' - **{cls.IE_NAME}**' if markdown else cls.IE_NAME
+ # Escape emojis. Ref: https://github.com/github/markup/issues/1153
+ name = (' - **%s**' % re.sub(r':(\w+:)', ':\u200B\\g<1>', cls.IE_NAME)) if markdown else cls.IE_NAME
return f'{name}:{desc}' if desc else name
def extract_subtitles(self, *args, **kwargs):