From a0c06984469c6774ee3dc1833bc1f63140c71aff Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Tue, 29 Jul 2025 17:10:15 +1000 Subject: [PATCH] playlist debug fix --- downloader/downloader/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/downloader/downloader/main.py b/downloader/downloader/main.py index 17ae89d..f36d70b 100644 --- a/downloader/downloader/main.py +++ b/downloader/downloader/main.py @@ -687,7 +687,10 @@ class SegmentGetter(object): def write_history(self, segment_path): segment_path = os.path.relpath(segment_path, self.base_dir) history_path = os.path.join(self.base_dir, "playlist-debug", segment_path) - os.makedirs(history_path) + try: + os.makedirs(history_path) + except FileExistsError: + pass for n, (timestamp, playlist) in enumerate(self.history): filename = "{}_{}".format(n, timestamp.strftime("%Y-%m-%dT%H:%M:%S.%f")) path = os.path.join(history_path, filename)