Fixes some twitter profiles crashing
This was caused by line 874, when a tweet was not available
This commit is contained in:
parent
0829838063
commit
3dbb76d6a3
@ -432,12 +432,11 @@ def watch():
|
||||
|
||||
if info['video']['isUpcoming']:
|
||||
vid_urls=[]
|
||||
elif info['video']['isLive']:
|
||||
vid_urls = get_live_urls(info['video']['urls'])
|
||||
else:
|
||||
vid_urls = get_best_urls(info['video']['urls'])
|
||||
|
||||
if info['video']['isLive']:
|
||||
vid_urls = get_live_urls(info['video']['urls'])
|
||||
|
||||
video={
|
||||
'title':info['video']['title'],
|
||||
'description':Markup(markupString(info['video']['description'])),
|
||||
@ -872,7 +871,10 @@ def getPosts(account):
|
||||
if quote.find('a', attrs={'class':'still-image'}):
|
||||
newPost.replyAttachedImg = NITTERINSTANCE+quote.find('a', attrs={'class':'still-image'})['href'][1:]
|
||||
|
||||
try:
|
||||
newPost.replyingUser=quote.find('a', attrs={'class':'username'}).text
|
||||
except:
|
||||
newPost.replyingUser="Unavailable"
|
||||
post.find('div', attrs={'class':'quote'}).decompose()
|
||||
|
||||
if post.find('div', attrs={'class':'attachments'}):
|
||||
|
Reference in New Issue
Block a user