lanbogao commited on
Commit
3fca3bd
1 Parent(s): 5d322d8

Set writesubtitles to False.

Browse files
Files changed (1) hide show
  1. 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": True,
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": True,
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
  }