Move the Tumblr backup root to the top of the script
- ID
032146f- date
2024-03-07 07:59:16+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
11f1607- message
Move the Tumblr backup root to the top of the script- changed files
1 file, 4 additions, 1 deletion
Changed files
web/save_tumblr_likes.py (12317) → web/save_tumblr_likes.py (12359)
diff --git a/web/save_tumblr_likes.py b/web/save_tumblr_likes.py
index fd5e1b8..7eeead5 100644
--- a/web/save_tumblr_likes.py
+++ b/web/save_tumblr_likes.py
@@ -19,6 +19,9 @@ from sqlite_utils.db import NotFoundError
import termcolor
+BACKUP_ROOT = pathlib.Path("/Volumes/Media (Sapphire)/backups/tumblr")
+
+
def get_liked_posts(blog_identifier: str, days: int):
"""
Get a list of all my likes from Tumblr.
@@ -352,5 +355,5 @@ if __name__ == "__main__":
download_tumblr_post(
post_url=post_data["post_url"],
post_data=post_data,
- download_root=pathlib.Path("/Volumes/Media (Sapphire)/backups/tumblr"),
+ download_root=pathlib.Path(BACKUP_ROOT),
)