Prefix m for media downloaded from direct messages

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-27 00:59:04 +01:00
parent a7a70d048a
commit fed45e7b9b

View file

@ -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()