bellingcat / auto-archiver

Automatically archive links to videos, images, and social media content from Google Sheets (and more).
https://pypi.org/project/auto-archiver/
MIT License
489 stars 53 forks source link

fix: recent changes to telethon sessions leave ghost files #135

Closed msramalho closed 2 months ago

msramalho commented 4 months ago

applies to telethon_archiver and tbot_archiver

the logic in https://github.com/bellingcat/auto-archiver/blob/601572d76e19d24ce1c3e8881b15d23a4bea987e/src/auto_archiver/archivers/telethon_archiver.py#L102-L105 (for telethon) is not being properly called everytime and so ghost .session files are left behind.