Spaces:
Sleeping
Sleeping
Set writesubtitles to False.
Browse files- fetchYoutubeSubtitle.py +2 -2
fetchYoutubeSubtitle.py
CHANGED
@@ -40,7 +40,7 @@ async def fetchSubtitle(url: str, lang: Optional[str] = 'en', subType: Optional[
|
|
40 |
|
41 |
async def fetchSubtitlebyType(url: str, lang: Optional[str] = 'en', subType="vtt") -> dict:
|
42 |
ydl_opts = {
|
43 |
-
"writesubtitles":
|
44 |
"allsubtitles": True,
|
45 |
"subtitleslangs": [lang] if lang else [],
|
46 |
"skip_download": True,
|
@@ -107,7 +107,7 @@ def xml_caption_to_srt( xml_captions: str) -> str:
|
|
107 |
|
108 |
async def fetchSubtitleUrls(url: str) -> json:
|
109 |
ydl_opts = {
|
110 |
-
"writesubtitles":
|
111 |
"allsubtitles": True,
|
112 |
"skip_download": True,
|
113 |
}
|
|
|
40 |
|
41 |
async def fetchSubtitlebyType(url: str, lang: Optional[str] = 'en', subType="vtt") -> dict:
|
42 |
ydl_opts = {
|
43 |
+
"writesubtitles": False,
|
44 |
"allsubtitles": True,
|
45 |
"subtitleslangs": [lang] if lang else [],
|
46 |
"skip_download": True,
|
|
|
107 |
|
108 |
async def fetchSubtitleUrls(url: str) -> json:
|
109 |
ydl_opts = {
|
110 |
+
"writesubtitles": False,
|
111 |
"allsubtitles": True,
|
112 |
"skip_download": True,
|
113 |
}
|