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)