From d48038d18f1ceffa2249096fe544512283b38a62 Mon Sep 17 00:00:00 2001 From: bashonly Date: Sun, 1 Jun 2025 13:40:45 -0500 Subject: [PATCH] [ie/douyutv] Transforming with `unescapeHTML` is unsafe without first expecting `str` Authored by: bashonly --- yt_dlp/extractor/douyutv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/douyutv.py b/yt_dlp/extractor/douyutv.py index e36eac9193..68ace240c7 100644 --- a/yt_dlp/extractor/douyutv.py +++ b/yt_dlp/extractor/douyutv.py @@ -206,7 +206,7 @@ class DouyuTVIE(DouyuBaseIE): 'is_live': True, **traverse_obj(room, { 'display_id': ('url', {str}, {lambda i: i[1:]}), - 'title': ('room_name', {unescapeHTML}), + 'title': ('room_name', {str}, {unescapeHTML}), 'description': ('show_details', {str}), 'uploader': ('nickname', {str}), 'thumbnail': ('room_src', {url_or_none}),