patch eb8bab16f3d5ca071956c1b4eb0565befd57805a
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sat Feb 5 17:21:17 CET 2022
* telegram: Replace spaces with underscores in downloaded file names
diff -rN -u old-irgramd-1/utils.py new-irgramd-1/utils.py
--- old-irgramd-1/utils.py 2025-04-19 16:33:15.694304100 +0200
+++ new-irgramd-1/utils.py 2025-04-19 16:33:15.694304100 +0200
@@ -44,4 +44,4 @@
return messages_limited
def sanitize_filename(fn):
- return re.sub('[/{}<>()"\'\\|&]', '', fn).strip('-')
+ return re.sub('[/{}<>()"\'\\|&]', '', fn).strip('-').replace(' ','_')