Skip to content

Commit 54ff29d

Browse files
groovecoderCopilot
andauthored
Update src/meetings.py
Co-authored-by: Copilot <[email protected]>
1 parent 3941d08 commit 54ff29d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/meetings.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ async def parse_meetings(html: str) -> List[Dict[str, str]]:
111111

112112
if onclick_match:
113113
meeting_data["video"] = f"https:{onclick_match.group(1)}"
114-
meeting_data["clip_id"] = re.search(clip_id_exp, onclick).group(1)
115-
114+
clip_id_match = re.search(clip_id_exp, onclick)
115+
if clip_id_match:
116+
meeting_data["clip_id"] = clip_id_match.group(1)
117+
else:
118+
meeting_data["clip_id"] = None
116119
if not meeting_data["video"]:
117120
href = video_link.attributes.get("href", "")
118121
if href.startswith("javascript:"):

0 commit comments

Comments
 (0)