From f1690577699591ada12723dddadea41da7ce9eb0 Mon Sep 17 00:00:00 2001 From: lmluk Date: Sun, 8 Sep 2024 14:15:33 +0200 Subject: [PATCH] add bts memories --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index b22576d..b135753 100644 --- a/main.py +++ b/main.py @@ -151,6 +151,13 @@ def export_memories(memories: json): export_img(old_img_name, img_name, memory_dt, i['location']) else: export_img(old_img_name, img_name, memory_dt) + if 'btsMedia' in i and 'location' in i: + export_img("./Photos/post/" + get_img_filename(i['btsMedia']), + "%s/%s.mp4" % (out_path_memories, memory_dt.strftime('%Y-%m-%d_%H-%M-%S')), + memory_dt, i['location']) + if 'btsMedia' in i: + export_img("./Photos/post/" + get_img_filename(i['btsMedia']), + "%s/%s.mp4" % (out_path_memories, memory_dt.strftime('%Y-%m-%d_%H-%M-%S')), memory_dt) if verbose: printProgressBar(n+1, memory_count, prefix="Exporting Memories", suffix=("- " + memory_dt.strftime("%Y-%m-%d")), printEnd='\n')