From fed45e7b9b5acd0f1625f3ddada4b4f9136bb27c Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 27 Feb 2017 00:59:04 +0100 Subject: [PATCH] Prefix m for media downloaded from direct messages --- filler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filler.py b/filler.py index b378015..6a9ca98 100755 --- a/filler.py +++ b/filler.py @@ -61,7 +61,7 @@ def getMessages(db=dbtools.dbHelper(), two=twitools.twObject()): if 'media' in m.entities: mid = 0 for med in m.entities['media']: - downloadMedia(med['media_url'], m.id, mid) + downloadMedia(med['media_url'], "m%i" % int(m.id), mid) mid += 1 db.commit()