lanbogao commited on
Commit
54b8a97
1 Parent(s): 4868530

Fix len(subtitle) due to subtitle may be None.

Browse files
Files changed (1) hide show
  1. fetchYoutubeSubtitle.py +1 -1
fetchYoutubeSubtitle.py CHANGED
@@ -186,7 +186,7 @@ async def fetchSubtitlebyType(
186
  )
187
  print(
188
  "url:{}, title:{}, duration:{} len(subtitle): {}".format(
189
- url, title, duration, len(subtitle)
190
  )
191
  )
192
  return {
 
186
  )
187
  print(
188
  "url:{}, title:{}, duration:{} len(subtitle): {}".format(
189
+ url, title, duration, len(subtitle or "")
190
  )
191
  )
192
  return {