Spaces:
Sleeping
Sleeping
Update fetchYoutubeSubtitle.py
Browse files- fetchYoutubeSubtitle.py +1 -1
fetchYoutubeSubtitle.py
CHANGED
@@ -73,7 +73,7 @@ async def fetchYoutubeSubtitle(videoId: str) -> Dict:
|
|
73 |
title, subtitleList, error = result["title"], result["subtitleList"], result.get("error", None)
|
74 |
|
75 |
if not subtitleList or len(subtitleList) <= 0:
|
76 |
-
return {"title": title, "
|
77 |
|
78 |
betterSubtitle = (
|
79 |
await find(subtitleList, {"quality": "English"})
|
|
|
73 |
title, subtitleList, error = result["title"], result["subtitleList"], result.get("error", None)
|
74 |
|
75 |
if not subtitleList or len(subtitleList) <= 0:
|
76 |
+
return {"title": title, "subtitle": None, "error": error}
|
77 |
|
78 |
betterSubtitle = (
|
79 |
await find(subtitleList, {"quality": "English"})
|