lanbogao commited on
Commit
dcb193d
1 Parent(s): de037c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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,