Spaces:
Running
Running
Fix len(subtitle) due to subtitle may be None.
Browse files- 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 {
|