File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ async def wsb(self, reddit: asyncpraw.Reddit) -> None:
123
123
124
124
# Add images to the embed
125
125
img_url = []
126
- video = False
127
126
if not submission .is_self :
128
127
url = submission .url
129
128
if (
@@ -142,7 +141,6 @@ async def wsb(self, reddit: asyncpraw.Reddit) -> None:
142
141
143
142
title = "📸🖼️ " + title
144
143
elif "v.redd.it" in url :
145
- video = True
146
144
title = "🎥 " + title
147
145
if "images" in submission .preview :
148
146
img_url .append (
Original file line number Diff line number Diff line change 1
- import re
2
- import json
3
1
import datetime
2
+ import json
3
+ import re
4
4
from typing import List
5
5
6
6
# > Local imports
@@ -84,7 +84,7 @@ def parse_tweet(tweet: dict, update_tweet_id: bool = False):
84
84
)
85
85
return
86
86
# For long tweets
87
- elif "note_tweet" in tweet . keys () :
87
+ if "note_tweet" in tweet :
88
88
is_long_tweet = True
89
89
tweet_text = tweet ["note_tweet" ]["note_tweet_results" ]["result" ]["text" ]
90
90
tweet_entities = tweet ["note_tweet" ]["note_tweet_results" ]["result" ][
You can’t perform that action at this time.
0 commit comments