From 0b5d6fe1ed96d6899ed6379275cb18c48ae25688 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 28 Jun 2020 12:46:04 -0700 Subject: Do not override previous playability error if unknown --- youtube/yt_data_extract/watch_extraction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube/yt_data_extract') diff --git a/youtube/yt_data_extract/watch_extraction.py b/youtube/yt_data_extract/watch_extraction.py index 0444fc8..0970125 100644 --- a/youtube/yt_data_extract/watch_extraction.py +++ b/youtube/yt_data_extract/watch_extraction.py @@ -389,7 +389,7 @@ def _extract_playability_error(info, player_response, error_prefix=''): if playability_status not in (None, 'OK'): info['playability_error'] = error_prefix + playability_reason - else: + elif not info['playability_error']: # do not override info['playability_error'] = error_prefix + 'Unknown playability error' SUBTITLE_FORMATS = ('srv1', 'srv2', 'srv3', 'ttml', 'vtt') -- cgit v1.2.3