From c77cc776be03f2b8e631cb4e3a0f93c49f946e3c Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Tue, 27 Feb 2024 19:20:47 +0100 Subject: [PATCH] Check also webp --- misc/rename-twitter-images.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/rename-twitter-images.py b/misc/rename-twitter-images.py index 61f9097..3635587 100755 --- a/misc/rename-twitter-images.py +++ b/misc/rename-twitter-images.py @@ -2,7 +2,7 @@ import argparse from datetime import date, timedelta, datetime -from pathlib import Path +from wcmatch.pathlib import Path def get_week_start_end(year, week): @@ -31,7 +31,7 @@ def main(): options = parser.parse_args() data_path = Path(options.path) - images = data_path.glob("*.png") + images = data_path.glob(['*.png', '*.webp']) base_dir = Path(options.base_dir)