Browse Source

Fix albums

master
blank X 8 months ago
parent
commit
25d9251208
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
  1. 6
      redditbot.py

6
redditbot.py

@ -207,7 +207,11 @@ async def main():
j = j[0]
k = k[0]
attributes = []
mimetype = (await _get_file_mimetype(k)) if k else ''
try:
mimetype = (await _get_file_mimetype(k)) if k else ''
except TypeError:
# (for now) telethon doesn't easily support attributes for grouped media
mimetype = ''
if mimetype.startswith('video/'):
try:
data = await _get_video_data(k)

Loading…
Cancel
Save