1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-01-27 17:21:52 +00:00

[ie/wat.tv] Improve DRM detection (#15659)

Closes #15647
Authored by: wesson09
This commit is contained in:
wesson09
2026-01-27 13:29:09 +01:00
committed by GitHub
parent 1effa06dbf
commit bc6ff877dd

View File

@@ -76,7 +76,7 @@ class WatIE(InfoExtractor):
if error_code == 'GEOBLOCKED':
self.raise_geo_restricted(error_desc, video_info.get('geoList'))
elif error_code == 'DELIVERY_ERROR':
if traverse_obj(video_data, ('delivery', 'code')) == 500:
if traverse_obj(video_data, ('delivery', 'code')) in (403, 500):
self.report_drm(video_id)
error_desc = join_nonempty(
error_desc, traverse_obj(video_data, ('delivery', 'error', {str})), delim=': ')