diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-06-28 12:46:04 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2020-06-28 12:46:04 -0700 |
commit | 0b5d6fe1ed96d6899ed6379275cb18c48ae25688 (patch) | |
tree | 154c3f4900b1f17383fe76073d62de9c3a964dfa /youtube/yt_data_extract/watch_extraction.py | |
parent | b4450ec4bb7cb12e09cb2cf5dc1e264080f23139 (diff) | |
download | yt-local-0b5d6fe1ed96d6899ed6379275cb18c48ae25688.tar.lz yt-local-0b5d6fe1ed96d6899ed6379275cb18c48ae25688.tar.xz yt-local-0b5d6fe1ed96d6899ed6379275cb18c48ae25688.zip |
Do not override previous playability error if unknown
Diffstat (limited to 'youtube/yt_data_extract/watch_extraction.py')
-rw-r--r-- | youtube/yt_data_extract/watch_extraction.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |