From 652ab3f85f40bd1063b9d5bdab01bba48840009d Mon Sep 17 00:00:00 2001 From: A S Lewis Date: Mon, 11 Dec 2023 17:44:43 +0000 Subject: [PATCH] Fix #580 again --- tartube/mainapp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tartube/mainapp.py b/tartube/mainapp.py index 291d088..e7dfdd2 100644 --- a/tartube/mainapp.py +++ b/tartube/mainapp.py @@ -15319,8 +15319,11 @@ def move_videos_continue(self, media_list): try: fh = open(archive_path, 'a') + if os.path.getsize(archive_path) == 0 and id_list: + fh.write('youtube ' + id_list.pop(0)) + for id in id_list: - fh.write('youtube ' + id) + fh.write('\nyoutube ' + id) fh.close()