Direct embed and 404 tweet tests

This commit is contained in:
Dylan
2022-09-29 01:23:53 +01:00
parent 777458e58f
commit d680579d6a
3 changed files with 16 additions and 5 deletions

View File

@ -208,9 +208,9 @@ def vnfFromCacheOrDL(video_link):
return vnf,None
except ExtractorError as exErr:
if 'HTTP Error 404' in exErr.msg:
exErr.msg="Tweet not found."
exErr.msg=msgs.tweetNotFound
elif 'suspended' in exErr.msg:
exErr.msg="This Tweet is from a suspended account."
exErr.msg=msgs.tweetSuspended
else:
exErr.msg=None
return None,exErr.msg