Skip to content

Commit 785c53c

Browse files
committed
2 parents 45d3189 + 8404f86 commit 785c53c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ytfetcher/_youtube_dl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _to_snippets(self, entries: list[dict]) -> list[DLSnippet]:
6666
video_id=entry["id"],
6767
title=entry["title"],
6868
description=entry["description"],
69-
url=entry["url"] or f"https://youtube.com/watch?v={entry.get('id')}",
69+
url=entry.get("url") or f"https://youtube.com/watch?v={entry.get('id')}",
7070
duration=entry["duration"],
7171
view_count=entry["view_count"],
7272
thumbnails=entry["thumbnails"],

0 commit comments

Comments
 (0)