Skip to content

Commit

Permalink
Update youtube.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yinyajiang committed Jan 7, 2025
1 parent bc775d4 commit 987be74
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions yt_dlp/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -4467,12 +4467,6 @@ def _is_vr_video(self, player_responses):
]
if any(vr_warning in response_str for vr_warning in vr_warings_list):
return True
for resp in player_responses:
vr_config = traverse_obj(resp, ('playerConfig', 'vrConfig'))
if vr_config:
if 'allowVr' in vr_config:
return vr_config['allowVr']
return True
return False

Check failure on line 4470 in yt_dlp/extractor/youtube.py

View workflow job for this annotation

GitHub Actions / Code check

Ruff (SIM103)

yt_dlp/extractor/youtube.py:4468:13: SIM103 Return the condition directly
except Exception:
return False
Expand Down

0 comments on commit 987be74

Please sign in to comment.