From 0e14c2b7c5c842d350c155991110b944e107c08f Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 29 Apr 2023 14:52:46 +0700 Subject: [PATCH] skip season folder if exists --- src/series.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/series.py b/src/series.py index c9e1868..e4c1b25 100644 --- a/src/series.py +++ b/src/series.py @@ -125,7 +125,8 @@ class Show: for year in all_expected: if year not in all_existing: path: str = os.path.join(base, channel_name, year) - os.mkdir(path) + if not os.path.exists(path): + os.mkdir(path) folders.append(path) self._wait_for_seasons()