Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
radry authored Feb 8, 2024
1 parent 8587848 commit 9e736ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ def generate():

# Search for a video of the given search term
video_urls = []
#defines how many results it should query and search through
it = 10
# defines how many results it should query and search through
it = 15
# defines the minimum duration of each clip
min_dur = 10
# Loop through all search terms,
# and search for a video of the given search term
for search_term in search_terms:
Expand All @@ -92,7 +94,7 @@ def generate():
}
)
found_url = search_for_stock_videos(
search_term, os.getenv("PEXELS_API_KEY"), it
search_term, os.getenv("PEXELS_API_KEY"), it, min_dur
)
#check for duplicates
for url in found_url:
Expand Down

0 comments on commit 9e736ec

Please sign in to comment.