Spaces:
Running
Running
Skip webpage & add requested_subtitles back.
Browse files- 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 |
-
|
133 |
"skip_download": True,
|
134 |
"socket_timeout": 10,
|
135 |
"extractor_retries": 0,
|
136 |
"extractor_args": {
|
137 |
"youtube": {
|
138 |
-
"player_skip": ["configs", "initial"], #
|
139 |
-
"player_client": ["
|
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 |
},
|