[ie/douyutv] Transforming with unescapeHTML is unsafe without first expecting str

Authored by: bashonly
This commit is contained in:
bashonly 2025-06-01 13:40:45 -05:00
parent 810086b434
commit d48038d18f
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -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}),