Skip to content

Commit

Permalink
Update YouTube.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseis committed Sep 12, 2023
1 parent ebbfb73 commit 468df6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/strategies/YouTube.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ def YouTube_search(query, order, searchLimit, page, strategy) :

entity = {}

# https://github.com/pytube/pytube/issues/1674#issuecomment-1706105785
try:
yt_object.bypass_age_gate()
except:
pass

try:
entity["title"] = yt_object.title
entity["url"] = url
Expand Down

0 comments on commit 468df6b

Please sign in to comment.