added 2 second addition at end of yt clip
Browse files- ai_config_faiss.py +1 -1
ai_config_faiss.py
CHANGED
@@ -91,7 +91,7 @@ class FAISSAIAssistant:
|
|
91 |
metadata = doc['metadata']
|
92 |
st_ts = timestamp_to_seconds(metadata['start_timestamp'])
|
93 |
end_ts = timestamp_to_seconds(metadata['end_timestamp'])
|
94 |
-
end_url = "" if end_ts == 0 else f"&end={end_ts}"
|
95 |
|
96 |
yt_url = (
|
97 |
f"https://youtube.com/embed/{metadata['youtube_id']}"
|
|
|
91 |
metadata = doc['metadata']
|
92 |
st_ts = timestamp_to_seconds(metadata['start_timestamp'])
|
93 |
end_ts = timestamp_to_seconds(metadata['end_timestamp'])
|
94 |
+
end_url = "" if end_ts == 0 else f"&end={end_ts+2}"
|
95 |
|
96 |
yt_url = (
|
97 |
f"https://youtube.com/embed/{metadata['youtube_id']}"
|