Commit ·
64aa81b
1
Parent(s): 62270cb
Fix Pexels: pass full keywords list instead of single keyword to find_video
Browse files
modules/video_creator/services/short_creator.py
CHANGED
|
@@ -191,9 +191,12 @@ class ShortCreator:
|
|
| 191 |
temp_vid_id = str(uuid.uuid4()).replace('-', '')[:12]
|
| 192 |
|
| 193 |
try:
|
| 194 |
-
# 1. Try Video Search
|
|
|
|
|
|
|
|
|
|
| 195 |
pexels_video = self.pexels.find_video(
|
| 196 |
-
|
| 197 |
search_duration,
|
| 198 |
exclude_video_ids,
|
| 199 |
orientation
|
|
|
|
| 191 |
temp_vid_id = str(uuid.uuid4()).replace('-', '')[:12]
|
| 192 |
|
| 193 |
try:
|
| 194 |
+
# 1. Try Video Search - pass full keywords list
|
| 195 |
+
# Ensure keywords is a list for find_video
|
| 196 |
+
search_keywords = keywords if isinstance(keywords, list) else [keywords]
|
| 197 |
+
|
| 198 |
pexels_video = self.pexels.find_video(
|
| 199 |
+
search_keywords, # Pass full list, not just first keyword
|
| 200 |
search_duration,
|
| 201 |
exclude_video_ids,
|
| 202 |
orientation
|