Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,8 @@ def read_main():
|
|
24 |
|
25 |
|
26 |
def get_subtitle(url, lang='en'):
|
|
|
|
|
27 |
# Download subtitles if available
|
28 |
ydl_opts = {
|
29 |
'writesubtitles': True,
|
|
|
24 |
|
25 |
|
26 |
def get_subtitle(url, lang='en'):
|
27 |
+
if lang is None:
|
28 |
+
lang = 'en'
|
29 |
# Download subtitles if available
|
30 |
ydl_opts = {
|
31 |
'writesubtitles': True,
|