mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-23 21:47:16 +01:00
report 403 error as drm issue, in relation with upstream issue #15647
This commit is contained in:
parent
58b3eaffca
commit
47acaf172b
1 changed files with 1 additions and 1 deletions
|
|
@ -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=': ')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue