lanbogao commited on
Commit
0ffddf9
1 Parent(s): b4671e5

Skip webpage & add requested_subtitles back.

Browse files
Files changed (1) hide show
  1. fetchYoutubeSubtitle.py +3 -3
fetchYoutubeSubtitle.py CHANGED
@@ -129,14 +129,14 @@ async def fetchSubtitlebyType(
129
  "writeautomaticsub": True,
130
  # "listsubtitles": True,
131
  # "subtitlesformat": subType, # mark due to default youtube no srt and xml format
132
- # "subtitleslangs": [reqLang],
133
  "skip_download": True,
134
  "socket_timeout": 10,
135
  "extractor_retries": 0,
136
  "extractor_args": {
137
  "youtube": {
138
- "player_skip": ["configs", "initial"], # "webpage",
139
- "player_client": ["android"],
140
  "skip": ["hls", "dash"], # don't skip "translated_subs"
141
  }
142
  },
 
129
  "writeautomaticsub": True,
130
  # "listsubtitles": True,
131
  # "subtitlesformat": subType, # mark due to default youtube no srt and xml format
132
+ "subtitleslangs": [reqLang],
133
  "skip_download": True,
134
  "socket_timeout": 10,
135
  "extractor_retries": 0,
136
  "extractor_args": {
137
  "youtube": {
138
+ "player_skip": ["webpage", "configs", "initial"], #
139
+ "player_client": ["ios"],
140
  "skip": ["hls", "dash"], # don't skip "translated_subs"
141
  }
142
  },