Browse Source

replace media_post with media_path, now media_posts are dropped

master
manetta 3 years ago
parent
commit
82760cc950
  1. 2
      LogBot/logbot.py

2
LogBot/logbot.py

@ -202,7 +202,7 @@ class Logbot(Bot):
if message.url: if message.url:
media_type, media_mime, media_path, media_size = self._download(message) media_type, media_mime, media_path, media_size = self._download(message)
# TODO: Insert a list of accepted file types here. # TODO: Insert a list of accepted file types here.
if media_post: if media_path:
num = self._add_to_db(message, media_type=media_mime, media_path=media_path, media_size=media_size) num = self._add_to_db(message, media_type=media_mime, media_path=media_path, media_size=media_size)
media_type = media_type.replace("images", "image") # linguistic hack! media_type = media_type.replace("images", "image") # linguistic hack!
if 'pdf' in message.url: if 'pdf' in message.url:

Loading…
Cancel
Save