File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -132,14 +132,18 @@ async def wsb(self, reddit: asyncpraw.Reddit) -> None:
132
132
or url .endswith (".gif" )
133
133
):
134
134
img_url .append (url )
135
+ title = "🖼️ " + title
135
136
# If the post includes multiple images
136
137
elif "gallery" in url :
137
138
image_dict = submission .media_metadata
138
139
for image_item in image_dict .values ():
139
140
largest_image = image_item ["s" ]
140
141
img_url .append (largest_image ["u" ])
142
+
143
+ title = "📸🖼️ " + title
141
144
elif "v.redd.it" in url :
142
145
video = True
146
+ title = "🎥 " + title
143
147
if "images" in submission .preview :
144
148
img_url .append (
145
149
submission .preview ["images" ][0 ]["source" ]["url" ]
@@ -159,10 +163,6 @@ async def wsb(self, reddit: asyncpraw.Reddit) -> None:
159
163
if img_url :
160
164
e .set_image (url = img_url [0 ])
161
165
162
- # Add video emoji to the title
163
- if video :
164
- e .title = "🎥 " + e .title
165
-
166
166
e .set_footer (
167
167
text = f"🔼 { submission .score } | 💬 { submission .num_comments } " ,
168
168
icon_url = data_sources ["reddit" ]["icon" ],
You can’t perform that action at this time.
0 commit comments